@@ 2578-2585 (lines=8) @@ | ||
2575 | Jetpack::catch_errors( false ); |
|
2576 | ||
2577 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2578 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2579 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2580 | ||
2581 | //Jump start is being dismissed send data to MC Stats |
|
2582 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2583 | ||
2584 | $jetpack->do_stats( 'server_side' ); |
|
2585 | } |
|
2586 | ||
2587 | if ( $redirect ) { |
|
2588 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2616-2623 (lines=8) @@ | ||
2613 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2614 | ||
2615 | // A flag for Jump Start so it's not shown again. |
|
2616 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2617 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2618 | ||
2619 | //Jump start is being dismissed send data to MC Stats |
|
2620 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2621 | ||
2622 | $jetpack->do_stats( 'server_side' ); |
|
2623 | } |
|
2624 | ||
2625 | return self::update_active_modules( $new ); |
|
2626 | } |