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