@@ 2906-2913 (lines=8) @@ | ||
2903 | Jetpack::catch_errors( false ); |
|
2904 | ||
2905 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2906 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2907 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2908 | ||
2909 | //Jump start is being dismissed send data to MC Stats |
|
2910 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2911 | ||
2912 | $jetpack->do_stats( 'server_side' ); |
|
2913 | } |
|
2914 | ||
2915 | if ( $redirect ) { |
|
2916 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2944-2951 (lines=8) @@ | ||
2941 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2942 | ||
2943 | // A flag for Jump Start so it's not shown again. |
|
2944 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2945 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2946 | ||
2947 | //Jump start is being dismissed send data to MC Stats |
|
2948 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2949 | ||
2950 | $jetpack->do_stats( 'server_side' ); |
|
2951 | } |
|
2952 | ||
2953 | return self::update_active_modules( $new ); |
|
2954 | } |