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