@@ 2484-2491 (lines=8) @@ | ||
2481 | Jetpack::catch_errors( false ); |
|
2482 | ||
2483 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2484 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2485 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2486 | ||
2487 | //Jump start is being dismissed send data to MC Stats |
|
2488 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2489 | ||
2490 | $jetpack->do_stats( 'server_side' ); |
|
2491 | } |
|
2492 | ||
2493 | if ( $redirect ) { |
|
2494 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2522-2529 (lines=8) @@ | ||
2519 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2520 | ||
2521 | // A flag for Jump Start so it's not shown again. |
|
2522 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2523 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2524 | ||
2525 | //Jump start is being dismissed send data to MC Stats |
|
2526 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2527 | ||
2528 | $jetpack->do_stats( 'server_side' ); |
|
2529 | } |
|
2530 | ||
2531 | return self::update_active_modules( $new ); |
|
2532 | } |