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