@@ 4442-4456 (lines=15) @@ | ||
4439 | wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
|
4440 | } |
|
4441 | break; |
|
4442 | case 'jetpack-manage-opt-out': |
|
4443 | ||
4444 | if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
|
4445 | // Don't show the banner again |
|
4446 | ||
4447 | Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
|
4448 | // redirect back to the page that had the notice |
|
4449 | if ( wp_get_referer() ) { |
|
4450 | wp_safe_redirect( wp_get_referer() ); |
|
4451 | } else { |
|
4452 | // Take me to Jetpack |
|
4453 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4454 | } |
|
4455 | } |
|
4456 | break; |
|
4457 | case 'jetpack-protect-multisite-opt-out': |
|
4458 | ||
4459 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4457-4471 (lines=15) @@ | ||
4454 | } |
|
4455 | } |
|
4456 | break; |
|
4457 | case 'jetpack-protect-multisite-opt-out': |
|
4458 | ||
4459 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
4460 | // Don't show the banner again |
|
4461 | ||
4462 | update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
|
4463 | // redirect back to the page that had the notice |
|
4464 | if ( wp_get_referer() ) { |
|
4465 | wp_safe_redirect( wp_get_referer() ); |
|
4466 | } else { |
|
4467 | // Take me to Jetpack |
|
4468 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4469 | } |
|
4470 | } |
|
4471 | break; |
|
4472 | case 'jetpack-manage-opt-in': |
|
4473 | if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
|
4474 | // This makes sure that we are redirect to jetpack home so that we can see the Success Message. |