@@ 2405-2412 (lines=8) @@ | ||
2402 | Jetpack::catch_errors( false ); |
|
2403 | ||
2404 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2405 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2406 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2407 | ||
2408 | //Jump start is being dismissed send data to MC Stats |
|
2409 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2410 | ||
2411 | $jetpack->do_stats( 'server_side' ); |
|
2412 | } |
|
2413 | ||
2414 | if ( $redirect ) { |
|
2415 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2443-2450 (lines=8) @@ | ||
2440 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2441 | ||
2442 | // A flag for Jump Start so it's not shown again. |
|
2443 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2444 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2445 | ||
2446 | //Jump start is being dismissed send data to MC Stats |
|
2447 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2448 | ||
2449 | $jetpack->do_stats( 'server_side' ); |
|
2450 | } |
|
2451 | ||
2452 | return self::update_active_modules( $new ); |
|
2453 | } |