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