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