@@ 2802-2809 (lines=8) @@ | ||
2799 | Jetpack::catch_errors( false ); |
|
2800 | ||
2801 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2802 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2803 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2804 | ||
2805 | //Jump start is being dismissed send data to MC Stats |
|
2806 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2807 | ||
2808 | $jetpack->do_stats( 'server_side' ); |
|
2809 | } |
|
2810 | ||
2811 | if ( $redirect ) { |
|
2812 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2840-2847 (lines=8) @@ | ||
2837 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2838 | ||
2839 | // A flag for Jump Start so it's not shown again. |
|
2840 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2841 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2842 | ||
2843 | //Jump start is being dismissed send data to MC Stats |
|
2844 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2845 | ||
2846 | $jetpack->do_stats( 'server_side' ); |
|
2847 | } |
|
2848 | ||
2849 | return self::update_active_modules( $new ); |
|
2850 | } |