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