@@ 4734-4748 (lines=15) @@ | ||
4731 | wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
|
4732 | } |
|
4733 | break; |
|
4734 | case 'jetpack-manage-opt-out': |
|
4735 | ||
4736 | if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
|
4737 | // Don't show the banner again |
|
4738 | ||
4739 | Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
|
4740 | // redirect back to the page that had the notice |
|
4741 | if ( wp_get_referer() ) { |
|
4742 | wp_safe_redirect( wp_get_referer() ); |
|
4743 | } else { |
|
4744 | // Take me to Jetpack |
|
4745 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4746 | } |
|
4747 | } |
|
4748 | break; |
|
4749 | case 'jetpack-protect-multisite-opt-out': |
|
4750 | ||
4751 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4749-4763 (lines=15) @@ | ||
4746 | } |
|
4747 | } |
|
4748 | break; |
|
4749 | case 'jetpack-protect-multisite-opt-out': |
|
4750 | ||
4751 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
4752 | // Don't show the banner again |
|
4753 | ||
4754 | update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
|
4755 | // redirect back to the page that had the notice |
|
4756 | if ( wp_get_referer() ) { |
|
4757 | wp_safe_redirect( wp_get_referer() ); |
|
4758 | } else { |
|
4759 | // Take me to Jetpack |
|
4760 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4761 | } |
|
4762 | } |
|
4763 | break; |
|
4764 | case 'jetpack-manage-opt-in': |
|
4765 | if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
|
4766 | // This makes sure that we are redirect to jetpack home so that we can see the Success Message. |