@@ 4626-4640 (lines=15) @@ | ||
4623 | wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
|
4624 | } |
|
4625 | break; |
|
4626 | case 'jetpack-manage-opt-out': |
|
4627 | ||
4628 | if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
|
4629 | // Don't show the banner again |
|
4630 | ||
4631 | Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
|
4632 | // redirect back to the page that had the notice |
|
4633 | if ( wp_get_referer() ) { |
|
4634 | wp_safe_redirect( wp_get_referer() ); |
|
4635 | } else { |
|
4636 | // Take me to Jetpack |
|
4637 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4638 | } |
|
4639 | } |
|
4640 | break; |
|
4641 | case 'jetpack-protect-multisite-opt-out': |
|
4642 | ||
4643 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4641-4655 (lines=15) @@ | ||
4638 | } |
|
4639 | } |
|
4640 | break; |
|
4641 | case 'jetpack-protect-multisite-opt-out': |
|
4642 | ||
4643 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
4644 | // Don't show the banner again |
|
4645 | ||
4646 | update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
|
4647 | // redirect back to the page that had the notice |
|
4648 | if ( wp_get_referer() ) { |
|
4649 | wp_safe_redirect( wp_get_referer() ); |
|
4650 | } else { |
|
4651 | // Take me to Jetpack |
|
4652 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4653 | } |
|
4654 | } |
|
4655 | break; |
|
4656 | case 'jetpack-manage-opt-in': |
|
4657 | if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
|
4658 | // This makes sure that we are redirect to jetpack home so that we can see the Success Message. |