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