@@ 2585-2592 (lines=8) @@ | ||
2582 | Jetpack::catch_errors( false ); |
|
2583 | ||
2584 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2585 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2586 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2587 | ||
2588 | //Jump start is being dismissed send data to MC Stats |
|
2589 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2590 | ||
2591 | $jetpack->do_stats( 'server_side' ); |
|
2592 | } |
|
2593 | ||
2594 | if ( $redirect ) { |
|
2595 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2623-2630 (lines=8) @@ | ||
2620 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2621 | ||
2622 | // A flag for Jump Start so it's not shown again. |
|
2623 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2624 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2625 | ||
2626 | //Jump start is being dismissed send data to MC Stats |
|
2627 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2628 | ||
2629 | $jetpack->do_stats( 'server_side' ); |
|
2630 | } |
|
2631 | ||
2632 | return self::update_active_modules( $new ); |
|
2633 | } |