@@ 2824-2831 (lines=8) @@ | ||
2821 | Jetpack::catch_errors( false ); |
|
2822 | ||
2823 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2824 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2825 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2826 | ||
2827 | //Jump start is being dismissed send data to MC Stats |
|
2828 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2829 | ||
2830 | $jetpack->do_stats( 'server_side' ); |
|
2831 | } |
|
2832 | ||
2833 | if ( $redirect ) { |
|
2834 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2862-2869 (lines=8) @@ | ||
2859 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2860 | ||
2861 | // A flag for Jump Start so it's not shown again. |
|
2862 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2863 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2864 | ||
2865 | //Jump start is being dismissed send data to MC Stats |
|
2866 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2867 | ||
2868 | $jetpack->do_stats( 'server_side' ); |
|
2869 | } |
|
2870 | ||
2871 | return self::update_active_modules( $new ); |
|
2872 | } |