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