@@ 2474-2481 (lines=8) @@ | ||
2471 | Jetpack::catch_errors( false ); |
|
2472 | ||
2473 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2474 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2475 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2476 | ||
2477 | //Jump start is being dismissed send data to MC Stats |
|
2478 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2479 | ||
2480 | $jetpack->do_stats( 'server_side' ); |
|
2481 | } |
|
2482 | ||
2483 | if ( $redirect ) { |
|
2484 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2512-2519 (lines=8) @@ | ||
2509 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2510 | ||
2511 | // A flag for Jump Start so it's not shown again. |
|
2512 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2513 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2514 | ||
2515 | //Jump start is being dismissed send data to MC Stats |
|
2516 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2517 | ||
2518 | $jetpack->do_stats( 'server_side' ); |
|
2519 | } |
|
2520 | ||
2521 | return self::update_active_modules( $new ); |
|
2522 | } |