@@ 2517-2524 (lines=8) @@ | ||
2514 | Jetpack::catch_errors( false ); |
|
2515 | ||
2516 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2517 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2518 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2519 | ||
2520 | //Jump start is being dismissed send data to MC Stats |
|
2521 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2522 | ||
2523 | $jetpack->do_stats( 'server_side' ); |
|
2524 | } |
|
2525 | ||
2526 | if ( $redirect ) { |
|
2527 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2555-2562 (lines=8) @@ | ||
2552 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2553 | ||
2554 | // A flag for Jump Start so it's not shown again. |
|
2555 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2556 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2557 | ||
2558 | //Jump start is being dismissed send data to MC Stats |
|
2559 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2560 | ||
2561 | $jetpack->do_stats( 'server_side' ); |
|
2562 | } |
|
2563 | ||
2564 | return self::update_active_modules( $new ); |
|
2565 | } |