@@ 3115-3122 (lines=8) @@ | ||
3112 | Jetpack::catch_errors( false ); |
|
3113 | ||
3114 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
3115 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
3116 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
3117 | ||
3118 | //Jump start is being dismissed send data to MC Stats |
|
3119 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
3120 | ||
3121 | $jetpack->do_stats( 'server_side' ); |
|
3122 | } |
|
3123 | ||
3124 | if ( $redirect ) { |
|
3125 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 3153-3160 (lines=8) @@ | ||
3150 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
3151 | ||
3152 | // A flag for Jump Start so it's not shown again. |
|
3153 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
3154 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
3155 | ||
3156 | //Jump start is being dismissed send data to MC Stats |
|
3157 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
3158 | ||
3159 | $jetpack->do_stats( 'server_side' ); |
|
3160 | } |
|
3161 | ||
3162 | return self::update_active_modules( $new ); |
|
3163 | } |