@@ 2646-2653 (lines=8) @@ | ||
2643 | Jetpack::catch_errors( false ); |
|
2644 | ||
2645 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2646 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2647 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2648 | ||
2649 | //Jump start is being dismissed send data to MC Stats |
|
2650 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2651 | ||
2652 | $jetpack->do_stats( 'server_side' ); |
|
2653 | } |
|
2654 | ||
2655 | if ( $redirect ) { |
|
2656 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2684-2691 (lines=8) @@ | ||
2681 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2682 | ||
2683 | // A flag for Jump Start so it's not shown again. |
|
2684 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2685 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2686 | ||
2687 | //Jump start is being dismissed send data to MC Stats |
|
2688 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2689 | ||
2690 | $jetpack->do_stats( 'server_side' ); |
|
2691 | } |
|
2692 | ||
2693 | return self::update_active_modules( $new ); |
|
2694 | } |