@@ 4569-4583 (lines=15) @@ | ||
4566 | wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
|
4567 | } |
|
4568 | break; |
|
4569 | case 'jetpack-manage-opt-out': |
|
4570 | ||
4571 | if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
|
4572 | // Don't show the banner again |
|
4573 | ||
4574 | Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
|
4575 | // redirect back to the page that had the notice |
|
4576 | if ( wp_get_referer() ) { |
|
4577 | wp_safe_redirect( wp_get_referer() ); |
|
4578 | } else { |
|
4579 | // Take me to Jetpack |
|
4580 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4581 | } |
|
4582 | } |
|
4583 | break; |
|
4584 | case 'jetpack-protect-multisite-opt-out': |
|
4585 | ||
4586 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4584-4598 (lines=15) @@ | ||
4581 | } |
|
4582 | } |
|
4583 | break; |
|
4584 | case 'jetpack-protect-multisite-opt-out': |
|
4585 | ||
4586 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
4587 | // Don't show the banner again |
|
4588 | ||
4589 | update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
|
4590 | // redirect back to the page that had the notice |
|
4591 | if ( wp_get_referer() ) { |
|
4592 | wp_safe_redirect( wp_get_referer() ); |
|
4593 | } else { |
|
4594 | // Take me to Jetpack |
|
4595 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4596 | } |
|
4597 | } |
|
4598 | break; |
|
4599 | case 'jetpack-manage-opt-in': |
|
4600 | if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
|
4601 | // This makes sure that we are redirect to jetpack home so that we can see the Success Message. |