@@ 2768-2775 (lines=8) @@ | ||
2765 | Jetpack::catch_errors( false ); |
|
2766 | ||
2767 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2768 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2769 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2770 | ||
2771 | //Jump start is being dismissed send data to MC Stats |
|
2772 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2773 | ||
2774 | $jetpack->do_stats( 'server_side' ); |
|
2775 | } |
|
2776 | ||
2777 | if ( $redirect ) { |
|
2778 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2806-2813 (lines=8) @@ | ||
2803 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2804 | ||
2805 | // A flag for Jump Start so it's not shown again. |
|
2806 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2807 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2808 | ||
2809 | //Jump start is being dismissed send data to MC Stats |
|
2810 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2811 | ||
2812 | $jetpack->do_stats( 'server_side' ); |
|
2813 | } |
|
2814 | ||
2815 | return self::update_active_modules( $new ); |
|
2816 | } |