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