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