@@ 2839-2846 (lines=8) @@ | ||
2836 | Jetpack::catch_errors( false ); |
|
2837 | ||
2838 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2839 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2840 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2841 | ||
2842 | //Jump start is being dismissed send data to MC Stats |
|
2843 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2844 | ||
2845 | $jetpack->do_stats( 'server_side' ); |
|
2846 | } |
|
2847 | ||
2848 | if ( $redirect ) { |
|
2849 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2877-2884 (lines=8) @@ | ||
2874 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2875 | ||
2876 | // A flag for Jump Start so it's not shown again. |
|
2877 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2878 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2879 | ||
2880 | //Jump start is being dismissed send data to MC Stats |
|
2881 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2882 | ||
2883 | $jetpack->do_stats( 'server_side' ); |
|
2884 | } |
|
2885 | ||
2886 | return self::update_active_modules( $new ); |
|
2887 | } |