@@ 4552-4566 (lines=15) @@ | ||
4549 | wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
|
4550 | } |
|
4551 | break; |
|
4552 | case 'jetpack-manage-opt-out': |
|
4553 | ||
4554 | if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
|
4555 | // Don't show the banner again |
|
4556 | ||
4557 | Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
|
4558 | // redirect back to the page that had the notice |
|
4559 | if ( wp_get_referer() ) { |
|
4560 | wp_safe_redirect( wp_get_referer() ); |
|
4561 | } else { |
|
4562 | // Take me to Jetpack |
|
4563 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4564 | } |
|
4565 | } |
|
4566 | break; |
|
4567 | case 'jetpack-protect-multisite-opt-out': |
|
4568 | ||
4569 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4567-4581 (lines=15) @@ | ||
4564 | } |
|
4565 | } |
|
4566 | break; |
|
4567 | case 'jetpack-protect-multisite-opt-out': |
|
4568 | ||
4569 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
4570 | // Don't show the banner again |
|
4571 | ||
4572 | update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
|
4573 | // redirect back to the page that had the notice |
|
4574 | if ( wp_get_referer() ) { |
|
4575 | wp_safe_redirect( wp_get_referer() ); |
|
4576 | } else { |
|
4577 | // Take me to Jetpack |
|
4578 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4579 | } |
|
4580 | } |
|
4581 | break; |
|
4582 | case 'jetpack-manage-opt-in': |
|
4583 | if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
|
4584 | // This makes sure that we are redirect to jetpack home so that we can see the Success Message. |