@@ 2607-2614 (lines=8) @@ | ||
2604 | Jetpack::catch_errors( false ); |
|
2605 | ||
2606 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2607 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2608 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2609 | ||
2610 | //Jump start is being dismissed send data to MC Stats |
|
2611 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2612 | ||
2613 | $jetpack->do_stats( 'server_side' ); |
|
2614 | } |
|
2615 | ||
2616 | if ( $redirect ) { |
|
2617 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2645-2652 (lines=8) @@ | ||
2642 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2643 | ||
2644 | // A flag for Jump Start so it's not shown again. |
|
2645 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2646 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2647 | ||
2648 | //Jump start is being dismissed send data to MC Stats |
|
2649 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2650 | ||
2651 | $jetpack->do_stats( 'server_side' ); |
|
2652 | } |
|
2653 | ||
2654 | return self::update_active_modules( $new ); |
|
2655 | } |