@@ 4518-4532 (lines=15) @@ | ||
4515 | wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
|
4516 | } |
|
4517 | break; |
|
4518 | case 'jetpack-manage-opt-out': |
|
4519 | ||
4520 | if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
|
4521 | // Don't show the banner again |
|
4522 | ||
4523 | Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
|
4524 | // redirect back to the page that had the notice |
|
4525 | if ( wp_get_referer() ) { |
|
4526 | wp_safe_redirect( wp_get_referer() ); |
|
4527 | } else { |
|
4528 | // Take me to Jetpack |
|
4529 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4530 | } |
|
4531 | } |
|
4532 | break; |
|
4533 | case 'jetpack-protect-multisite-opt-out': |
|
4534 | ||
4535 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4533-4547 (lines=15) @@ | ||
4530 | } |
|
4531 | } |
|
4532 | break; |
|
4533 | case 'jetpack-protect-multisite-opt-out': |
|
4534 | ||
4535 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
4536 | // Don't show the banner again |
|
4537 | ||
4538 | update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
|
4539 | // redirect back to the page that had the notice |
|
4540 | if ( wp_get_referer() ) { |
|
4541 | wp_safe_redirect( wp_get_referer() ); |
|
4542 | } else { |
|
4543 | // Take me to Jetpack |
|
4544 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4545 | } |
|
4546 | } |
|
4547 | break; |
|
4548 | case 'jetpack-manage-opt-in': |
|
4549 | if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
|
4550 | // This makes sure that we are redirect to jetpack home so that we can see the Success Message. |