@@ 2391-2398 (lines=8) @@ | ||
2388 | Jetpack::catch_errors( false ); |
|
2389 | ||
2390 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2391 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2392 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2393 | ||
2394 | //Jump start is being dismissed send data to MC Stats |
|
2395 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2396 | ||
2397 | $jetpack->do_stats( 'server_side' ); |
|
2398 | } |
|
2399 | ||
2400 | if ( $redirect ) { |
|
2401 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2429-2436 (lines=8) @@ | ||
2426 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2427 | ||
2428 | // A flag for Jump Start so it's not shown again. |
|
2429 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2430 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2431 | ||
2432 | //Jump start is being dismissed send data to MC Stats |
|
2433 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2434 | ||
2435 | $jetpack->do_stats( 'server_side' ); |
|
2436 | } |
|
2437 | ||
2438 | return self::update_active_modules( $new ); |
|
2439 | } |