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