@@ 2549-2556 (lines=8) @@ | ||
2546 | Jetpack::catch_errors( false ); |
|
2547 | ||
2548 | // A flag for Jump Start so it's not shown again. Only set if it hasn't been yet. |
|
2549 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2550 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2551 | ||
2552 | //Jump start is being dismissed send data to MC Stats |
|
2553 | $jetpack->stat( 'jumpstart', 'manual,'.$module ); |
|
2554 | ||
2555 | $jetpack->do_stats( 'server_side' ); |
|
2556 | } |
|
2557 | ||
2558 | if ( $redirect ) { |
|
2559 | wp_safe_redirect( Jetpack::admin_url( 'page=jetpack' ) ); |
|
@@ 2587-2594 (lines=8) @@ | ||
2584 | $new = array_filter( array_diff( $active, (array) $module ) ); |
|
2585 | ||
2586 | // A flag for Jump Start so it's not shown again. |
|
2587 | if ( 'new_connection' === Jetpack_Options::get_option( 'jumpstart' ) ) { |
|
2588 | Jetpack_Options::update_option( 'jumpstart', 'jetpack_action_taken' ); |
|
2589 | ||
2590 | //Jump start is being dismissed send data to MC Stats |
|
2591 | $jetpack->stat( 'jumpstart', 'manual,deactivated-'.$module ); |
|
2592 | ||
2593 | $jetpack->do_stats( 'server_side' ); |
|
2594 | } |
|
2595 | ||
2596 | return self::update_active_modules( $new ); |
|
2597 | } |