@@ 2556-2563 (lines=8) @@ | ||
2553 | Jetpack::catch_errors( false ); |
|
2554 | ||
2555 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2556 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2557 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2558 | ||
2559 | //Jump start is being dismissed send data to MC Stats |
|
2560 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2561 | ||
2562 | $jetpack->do_stats( 'server_side' ); |
|
2563 | } |
|
2564 | ||
2565 | if ( $redirect ) { |
|
2566 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2594-2601 (lines=8) @@ | ||
2591 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2592 | ||
2593 | // A flag for Jump Start so it's not shown again. |
|
2594 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2595 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2596 | ||
2597 | //Jump start is being dismissed send data to MC Stats |
|
2598 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2599 | ||
2600 | $jetpack->do_stats( 'server_side' ); |
|
2601 | } |
|
2602 | ||
2603 | return self::update_active_modules( $new ); |
|
2604 | } |