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