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