@@ 2971-2978 (lines=8) @@ | ||
2968 | Jetpack::catch_errors( false ); |
|
2969 | ||
2970 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2971 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2972 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2973 | ||
2974 | //Jump start is being dismissed send data to MC Stats |
|
2975 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2976 | ||
2977 | $jetpack->do_stats( 'server_side' ); |
|
2978 | } |
|
2979 | ||
2980 | if ( $redirect ) { |
|
2981 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 3009-3016 (lines=8) @@ | ||
3006 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
3007 | ||
3008 | // A flag for Jump Start so it's not shown again. |
|
3009 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
3010 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
3011 | ||
3012 | //Jump start is being dismissed send data to MC Stats |
|
3013 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
3014 | ||
3015 | $jetpack->do_stats( 'server_side' ); |
|
3016 | } |
|
3017 | ||
3018 | return self::update_active_modules( $new ); |
|
3019 | } |