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