@@ 4684-4698 (lines=15) @@ | ||
4681 | wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
|
4682 | } |
|
4683 | break; |
|
4684 | case 'jetpack-manage-opt-out': |
|
4685 | ||
4686 | if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
|
4687 | // Don't show the banner again |
|
4688 | ||
4689 | Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
|
4690 | // redirect back to the page that had the notice |
|
4691 | if ( wp_get_referer() ) { |
|
4692 | wp_safe_redirect( wp_get_referer() ); |
|
4693 | } else { |
|
4694 | // Take me to Jetpack |
|
4695 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4696 | } |
|
4697 | } |
|
4698 | break; |
|
4699 | case 'jetpack-protect-multisite-opt-out': |
|
4700 | ||
4701 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4699-4713 (lines=15) @@ | ||
4696 | } |
|
4697 | } |
|
4698 | break; |
|
4699 | case 'jetpack-protect-multisite-opt-out': |
|
4700 | ||
4701 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
4702 | // Don't show the banner again |
|
4703 | ||
4704 | update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
|
4705 | // redirect back to the page that had the notice |
|
4706 | if ( wp_get_referer() ) { |
|
4707 | wp_safe_redirect( wp_get_referer() ); |
|
4708 | } else { |
|
4709 | // Take me to Jetpack |
|
4710 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4711 | } |
|
4712 | } |
|
4713 | break; |
|
4714 | case 'jetpack-manage-opt-in': |
|
4715 | if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
|
4716 | // This makes sure that we are redirect to jetpack home so that we can see the Success Message. |