@@ 4417-4431 (lines=15) @@ | ||
4414 | wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
|
4415 | } |
|
4416 | break; |
|
4417 | case 'jetpack-manage-opt-out': |
|
4418 | ||
4419 | if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
|
4420 | // Don't show the banner again |
|
4421 | ||
4422 | Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
|
4423 | // redirect back to the page that had the notice |
|
4424 | if ( wp_get_referer() ) { |
|
4425 | wp_safe_redirect( wp_get_referer() ); |
|
4426 | } else { |
|
4427 | // Take me to Jetpack |
|
4428 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4429 | } |
|
4430 | } |
|
4431 | break; |
|
4432 | case 'jetpack-protect-multisite-opt-out': |
|
4433 | ||
4434 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4432-4446 (lines=15) @@ | ||
4429 | } |
|
4430 | } |
|
4431 | break; |
|
4432 | case 'jetpack-protect-multisite-opt-out': |
|
4433 | ||
4434 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
4435 | // Don't show the banner again |
|
4436 | ||
4437 | update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
|
4438 | // redirect back to the page that had the notice |
|
4439 | if ( wp_get_referer() ) { |
|
4440 | wp_safe_redirect( wp_get_referer() ); |
|
4441 | } else { |
|
4442 | // Take me to Jetpack |
|
4443 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4444 | } |
|
4445 | } |
|
4446 | break; |
|
4447 | case 'jetpack-manage-opt-in': |
|
4448 | if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
|
4449 | // This makes sure that we are redirect to jetpack home so that we can see the Success Message. |