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