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