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