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