@@ 3007-3014 (lines=8) @@ | ||
3004 | Jetpack::catch_errors( false ); |
|
3005 | ||
3006 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
3007 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
3008 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
3009 | ||
3010 | //Jump start is being dismissed send data to MC Stats |
|
3011 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
3012 | ||
3013 | $jetpack->do_stats( 'server_side' ); |
|
3014 | } |
|
3015 | ||
3016 | if ( $redirect ) { |
|
3017 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 3045-3052 (lines=8) @@ | ||
3042 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
3043 | ||
3044 | // A flag for Jump Start so it's not shown again. |
|
3045 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
3046 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
3047 | ||
3048 | //Jump start is being dismissed send data to MC Stats |
|
3049 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
3050 | ||
3051 | $jetpack->do_stats( 'server_side' ); |
|
3052 | } |
|
3053 | ||
3054 | return self::update_active_modules( $new ); |
|
3055 | } |