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