@@ 2524-2531 (lines=8) @@ | ||
2521 | Jetpack::catch_errors( false ); |
|
2522 | ||
2523 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2524 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2525 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2526 | ||
2527 | //Jump start is being dismissed send data to MC Stats |
|
2528 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2529 | ||
2530 | $jetpack->do_stats( 'server_side' ); |
|
2531 | } |
|
2532 | ||
2533 | if ( $redirect ) { |
|
2534 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2562-2569 (lines=8) @@ | ||
2559 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2560 | ||
2561 | // A flag for Jump Start so it's not shown again. |
|
2562 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2563 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2564 | ||
2565 | //Jump start is being dismissed send data to MC Stats |
|
2566 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2567 | ||
2568 | $jetpack->do_stats( 'server_side' ); |
|
2569 | } |
|
2570 | ||
2571 | return self::update_active_modules( $new ); |
|
2572 | } |