@@ 2590-2597 (lines=8) @@ | ||
2587 | Jetpack::catch_errors( false ); |
|
2588 | ||
2589 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2590 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2591 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2592 | ||
2593 | //Jump start is being dismissed send data to MC Stats |
|
2594 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2595 | ||
2596 | $jetpack->do_stats( 'server_side' ); |
|
2597 | } |
|
2598 | ||
2599 | if ( $redirect ) { |
|
2600 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2628-2635 (lines=8) @@ | ||
2625 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2626 | ||
2627 | // A flag for Jump Start so it's not shown again. |
|
2628 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2629 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2630 | ||
2631 | //Jump start is being dismissed send data to MC Stats |
|
2632 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2633 | ||
2634 | $jetpack->do_stats( 'server_side' ); |
|
2635 | } |
|
2636 | ||
2637 | return self::update_active_modules( $new ); |
|
2638 | } |