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