@@ 4483-4497 (lines=15) @@ | ||
4480 | wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
|
4481 | } |
|
4482 | break; |
|
4483 | case 'jetpack-manage-opt-out': |
|
4484 | ||
4485 | if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
|
4486 | // Don't show the banner again |
|
4487 | ||
4488 | Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
|
4489 | // redirect back to the page that had the notice |
|
4490 | if ( wp_get_referer() ) { |
|
4491 | wp_safe_redirect( wp_get_referer() ); |
|
4492 | } else { |
|
4493 | // Take me to Jetpack |
|
4494 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4495 | } |
|
4496 | } |
|
4497 | break; |
|
4498 | case 'jetpack-protect-multisite-opt-out': |
|
4499 | ||
4500 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4498-4512 (lines=15) @@ | ||
4495 | } |
|
4496 | } |
|
4497 | break; |
|
4498 | case 'jetpack-protect-multisite-opt-out': |
|
4499 | ||
4500 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
4501 | // Don't show the banner again |
|
4502 | ||
4503 | update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
|
4504 | // redirect back to the page that had the notice |
|
4505 | if ( wp_get_referer() ) { |
|
4506 | wp_safe_redirect( wp_get_referer() ); |
|
4507 | } else { |
|
4508 | // Take me to Jetpack |
|
4509 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4510 | } |
|
4511 | } |
|
4512 | break; |
|
4513 | case 'jetpack-manage-opt-in': |
|
4514 | if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
|
4515 | // This makes sure that we are redirect to jetpack home so that we can see the Success Message. |