@@ 4715-4729 (lines=15) @@ | ||
4712 | wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
|
4713 | } |
|
4714 | break; |
|
4715 | case 'jetpack-manage-opt-out': |
|
4716 | ||
4717 | if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
|
4718 | // Don't show the banner again |
|
4719 | ||
4720 | Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
|
4721 | // redirect back to the page that had the notice |
|
4722 | if ( wp_get_referer() ) { |
|
4723 | wp_safe_redirect( wp_get_referer() ); |
|
4724 | } else { |
|
4725 | // Take me to Jetpack |
|
4726 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4727 | } |
|
4728 | } |
|
4729 | break; |
|
4730 | case 'jetpack-protect-multisite-opt-out': |
|
4731 | ||
4732 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4730-4744 (lines=15) @@ | ||
4727 | } |
|
4728 | } |
|
4729 | break; |
|
4730 | case 'jetpack-protect-multisite-opt-out': |
|
4731 | ||
4732 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
4733 | // Don't show the banner again |
|
4734 | ||
4735 | update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
|
4736 | // redirect back to the page that had the notice |
|
4737 | if ( wp_get_referer() ) { |
|
4738 | wp_safe_redirect( wp_get_referer() ); |
|
4739 | } else { |
|
4740 | // Take me to Jetpack |
|
4741 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4742 | } |
|
4743 | } |
|
4744 | break; |
|
4745 | case 'jetpack-manage-opt-in': |
|
4746 | if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
|
4747 | // This makes sure that we are redirect to jetpack home so that we can see the Success Message. |