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