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