@@ 2977-2984 (lines=8) @@ | ||
2974 | Jetpack::catch_errors( false ); |
|
2975 | ||
2976 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2977 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2978 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2979 | ||
2980 | //Jump start is being dismissed send data to MC Stats |
|
2981 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2982 | ||
2983 | $jetpack->do_stats( 'server_side' ); |
|
2984 | } |
|
2985 | ||
2986 | if ( $redirect ) { |
|
2987 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 3015-3022 (lines=8) @@ | ||
3012 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
3013 | ||
3014 | // A flag for Jump Start so it's not shown again. |
|
3015 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
3016 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
3017 | ||
3018 | //Jump start is being dismissed send data to MC Stats |
|
3019 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
3020 | ||
3021 | $jetpack->do_stats( 'server_side' ); |
|
3022 | } |
|
3023 | ||
3024 | return self::update_active_modules( $new ); |
|
3025 | } |