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