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