@@ 2992-2999 (lines=8) @@ | ||
2989 | Jetpack::catch_errors( false ); |
|
2990 | ||
2991 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2992 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2993 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2994 | ||
2995 | //Jump start is being dismissed send data to MC Stats |
|
2996 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2997 | ||
2998 | $jetpack->do_stats( 'server_side' ); |
|
2999 | } |
|
3000 | ||
3001 | if ( $redirect ) { |
|
3002 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 3030-3037 (lines=8) @@ | ||
3027 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
3028 | ||
3029 | // A flag for Jump Start so it's not shown again. |
|
3030 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
3031 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
3032 | ||
3033 | //Jump start is being dismissed send data to MC Stats |
|
3034 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
3035 | ||
3036 | $jetpack->do_stats( 'server_side' ); |
|
3037 | } |
|
3038 | ||
3039 | return self::update_active_modules( $new ); |
|
3040 | } |