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