@@ 2656-2663 (lines=8) @@ | ||
2653 | Jetpack::catch_errors( false ); |
|
2654 | ||
2655 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2656 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2657 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2658 | ||
2659 | //Jump start is being dismissed send data to MC Stats |
|
2660 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2661 | ||
2662 | $jetpack->do_stats( 'server_side' ); |
|
2663 | } |
|
2664 | ||
2665 | if ( $redirect ) { |
|
2666 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2694-2701 (lines=8) @@ | ||
2691 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2692 | ||
2693 | // A flag for Jump Start so it's not shown again. |
|
2694 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2695 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2696 | ||
2697 | //Jump start is being dismissed send data to MC Stats |
|
2698 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2699 | ||
2700 | $jetpack->do_stats( 'server_side' ); |
|
2701 | } |
|
2702 | ||
2703 | return self::update_active_modules( $new ); |
|
2704 | } |