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