@@ 2617-2624 (lines=8) @@ | ||
2614 | Jetpack::catch_errors( false ); |
|
2615 | ||
2616 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2617 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2618 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2619 | ||
2620 | //Jump start is being dismissed send data to MC Stats |
|
2621 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2622 | ||
2623 | $jetpack->do_stats( 'server_side' ); |
|
2624 | } |
|
2625 | ||
2626 | if ( $redirect ) { |
|
2627 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2655-2662 (lines=8) @@ | ||
2652 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2653 | ||
2654 | // A flag for Jump Start so it's not shown again. |
|
2655 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2656 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2657 | ||
2658 | //Jump start is being dismissed send data to MC Stats |
|
2659 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2660 | ||
2661 | $jetpack->do_stats( 'server_side' ); |
|
2662 | } |
|
2663 | ||
2664 | return self::update_active_modules( $new ); |
|
2665 | } |