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