@@ 2669-2676 (lines=8) @@ | ||
2666 | Jetpack::catch_errors( false ); |
|
2667 | ||
2668 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2669 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2670 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2671 | ||
2672 | //Jump start is being dismissed send data to MC Stats |
|
2673 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2674 | ||
2675 | $jetpack->do_stats( 'server_side' ); |
|
2676 | } |
|
2677 | ||
2678 | if ( $redirect ) { |
|
2679 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2707-2714 (lines=8) @@ | ||
2704 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2705 | ||
2706 | // A flag for Jump Start so it's not shown again. |
|
2707 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2708 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2709 | ||
2710 | //Jump start is being dismissed send data to MC Stats |
|
2711 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2712 | ||
2713 | $jetpack->do_stats( 'server_side' ); |
|
2714 | } |
|
2715 | ||
2716 | return self::update_active_modules( $new ); |
|
2717 | } |