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