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