@@ 3093-3100 (lines=8) @@ | ||
3090 | Jetpack::catch_errors( false ); |
|
3091 | ||
3092 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
3093 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
3094 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
3095 | ||
3096 | //Jump start is being dismissed send data to MC Stats |
|
3097 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
3098 | ||
3099 | $jetpack->do_stats( 'server_side' ); |
|
3100 | } |
|
3101 | ||
3102 | if ( $redirect ) { |
|
3103 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 3131-3138 (lines=8) @@ | ||
3128 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
3129 | ||
3130 | // A flag for Jump Start so it's not shown again. |
|
3131 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
3132 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
3133 | ||
3134 | //Jump start is being dismissed send data to MC Stats |
|
3135 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
3136 | ||
3137 | $jetpack->do_stats( 'server_side' ); |
|
3138 | } |
|
3139 | ||
3140 | return self::update_active_modules( $new ); |
|
3141 | } |