@@ 2663-2670 (lines=8) @@ | ||
2660 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2661 | ||
2662 | // A flag for Jump Start so it's not shown again. |
|
2663 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2664 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2665 | ||
2666 | //Jump start is being dismissed send data to MC Stats |
|
2667 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2668 | ||
2669 | $jetpack->do_stats( 'server_side' ); |
|
2670 | } |
|
2671 | ||
2672 | return self::update_active_modules( $new ); |
|
2673 | } |
|
@@ 2625-2632 (lines=8) @@ | ||
2622 | Jetpack::catch_errors( false ); |
|
2623 | ||
2624 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2625 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2626 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2627 | ||
2628 | //Jump start is being dismissed send data to MC Stats |
|
2629 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2630 | ||
2631 | $jetpack->do_stats( 'server_side' ); |
|
2632 | } |
|
2633 | ||
2634 | if ( $redirect ) { |
|
2635 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |