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