@@ 4766-4780 (lines=15) @@ | ||
4763 | wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
|
4764 | } |
|
4765 | break; |
|
4766 | case 'jetpack-manage-opt-out': |
|
4767 | ||
4768 | if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
|
4769 | // Don't show the banner again |
|
4770 | ||
4771 | Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
|
4772 | // redirect back to the page that had the notice |
|
4773 | if ( wp_get_referer() ) { |
|
4774 | wp_safe_redirect( wp_get_referer() ); |
|
4775 | } else { |
|
4776 | // Take me to Jetpack |
|
4777 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4778 | } |
|
4779 | } |
|
4780 | break; |
|
4781 | case 'jetpack-protect-multisite-opt-out': |
|
4782 | ||
4783 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4781-4795 (lines=15) @@ | ||
4778 | } |
|
4779 | } |
|
4780 | break; |
|
4781 | case 'jetpack-protect-multisite-opt-out': |
|
4782 | ||
4783 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
4784 | // Don't show the banner again |
|
4785 | ||
4786 | update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
|
4787 | // redirect back to the page that had the notice |
|
4788 | if ( wp_get_referer() ) { |
|
4789 | wp_safe_redirect( wp_get_referer() ); |
|
4790 | } else { |
|
4791 | // Take me to Jetpack |
|
4792 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4793 | } |
|
4794 | } |
|
4795 | break; |
|
4796 | case 'jetpack-manage-opt-in': |
|
4797 | if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
|
4798 | // This makes sure that we are redirect to jetpack home so that we can see the Success Message. |