@@ 3108-3115 (lines=8) @@ | ||
3105 | Jetpack::catch_errors( false ); |
|
3106 | ||
3107 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
3108 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
3109 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
3110 | ||
3111 | //Jump start is being dismissed send data to MC Stats |
|
3112 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
3113 | ||
3114 | $jetpack->do_stats( 'server_side' ); |
|
3115 | } |
|
3116 | ||
3117 | if ( $redirect ) { |
|
3118 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 3146-3153 (lines=8) @@ | ||
3143 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
3144 | ||
3145 | // A flag for Jump Start so it's not shown again. |
|
3146 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
3147 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
3148 | ||
3149 | //Jump start is being dismissed send data to MC Stats |
|
3150 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
3151 | ||
3152 | $jetpack->do_stats( 'server_side' ); |
|
3153 | } |
|
3154 | ||
3155 | return self::update_active_modules( $new ); |
|
3156 | } |