@@ 3000-3007 (lines=8) @@ | ||
2997 | Jetpack::catch_errors( false ); |
|
2998 | ||
2999 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
3000 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
3001 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
3002 | ||
3003 | //Jump start is being dismissed send data to MC Stats |
|
3004 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
3005 | ||
3006 | $jetpack->do_stats( 'server_side' ); |
|
3007 | } |
|
3008 | ||
3009 | if ( $redirect ) { |
|
3010 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 3038-3045 (lines=8) @@ | ||
3035 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
3036 | ||
3037 | // A flag for Jump Start so it's not shown again. |
|
3038 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
3039 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
3040 | ||
3041 | //Jump start is being dismissed send data to MC Stats |
|
3042 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
3043 | ||
3044 | $jetpack->do_stats( 'server_side' ); |
|
3045 | } |
|
3046 | ||
3047 | return self::update_active_modules( $new ); |
|
3048 | } |