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