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