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