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