@@ 2109-2116 (lines=8) @@ | ||
2106 | Jetpack::catch_errors( false ); |
|
2107 | ||
2108 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2109 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2110 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2111 | ||
2112 | //Jump start is being dismissed send data to MC Stats |
|
2113 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2114 | ||
2115 | $jetpack->do_stats( 'server_side' ); |
|
2116 | } |
|
2117 | ||
2118 | if ( $redirect ) { |
|
2119 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2147-2154 (lines=8) @@ | ||
2144 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2145 | ||
2146 | // A flag for Jump Start so it's not shown again. |
|
2147 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2148 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2149 | ||
2150 | //Jump start is being dismissed send data to MC Stats |
|
2151 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2152 | ||
2153 | $jetpack->do_stats( 'server_side' ); |
|
2154 | } |
|
2155 | ||
2156 | return self::update_active_modules( $new ); |
|
2157 | } |