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