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