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