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