@@ 3013-3020 (lines=8) @@ | ||
3010 | Jetpack::catch_errors( false ); |
|
3011 | ||
3012 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
3013 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
3014 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
3015 | ||
3016 | //Jump start is being dismissed send data to MC Stats |
|
3017 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
3018 | ||
3019 | $jetpack->do_stats( 'server_side' ); |
|
3020 | } |
|
3021 | ||
3022 | if ( $redirect ) { |
|
3023 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 3051-3058 (lines=8) @@ | ||
3048 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
3049 | ||
3050 | // A flag for Jump Start so it's not shown again. |
|
3051 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
3052 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
3053 | ||
3054 | //Jump start is being dismissed send data to MC Stats |
|
3055 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
3056 | ||
3057 | $jetpack->do_stats( 'server_side' ); |
|
3058 | } |
|
3059 | ||
3060 | return self::update_active_modules( $new ); |
|
3061 | } |