@@ 2704-2711 (lines=8) @@ | ||
2701 | Jetpack::catch_errors( false ); |
|
2702 | ||
2703 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2704 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2705 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2706 | ||
2707 | //Jump start is being dismissed send data to MC Stats |
|
2708 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2709 | ||
2710 | $jetpack->do_stats( 'server_side' ); |
|
2711 | } |
|
2712 | ||
2713 | if ( $redirect ) { |
|
2714 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2742-2749 (lines=8) @@ | ||
2739 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2740 | ||
2741 | // A flag for Jump Start so it's not shown again. |
|
2742 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2743 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2744 | ||
2745 | //Jump start is being dismissed send data to MC Stats |
|
2746 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2747 | ||
2748 | $jetpack->do_stats( 'server_side' ); |
|
2749 | } |
|
2750 | ||
2751 | return self::update_active_modules( $new ); |
|
2752 | } |