@@ 4381-4395 (lines=15) @@ | ||
4378 | wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
|
4379 | } |
|
4380 | break; |
|
4381 | case 'jetpack-manage-opt-out': |
|
4382 | ||
4383 | if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
|
4384 | // Don't show the banner again |
|
4385 | ||
4386 | Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
|
4387 | // redirect back to the page that had the notice |
|
4388 | if ( wp_get_referer() ) { |
|
4389 | wp_safe_redirect( wp_get_referer() ); |
|
4390 | } else { |
|
4391 | // Take me to Jetpack |
|
4392 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4393 | } |
|
4394 | } |
|
4395 | break; |
|
4396 | case 'jetpack-protect-multisite-opt-out': |
|
4397 | ||
4398 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4396-4410 (lines=15) @@ | ||
4393 | } |
|
4394 | } |
|
4395 | break; |
|
4396 | case 'jetpack-protect-multisite-opt-out': |
|
4397 | ||
4398 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
4399 | // Don't show the banner again |
|
4400 | ||
4401 | update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
|
4402 | // redirect back to the page that had the notice |
|
4403 | if ( wp_get_referer() ) { |
|
4404 | wp_safe_redirect( wp_get_referer() ); |
|
4405 | } else { |
|
4406 | // Take me to Jetpack |
|
4407 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4408 | } |
|
4409 | } |
|
4410 | break; |
|
4411 | case 'jetpack-manage-opt-in': |
|
4412 | if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
|
4413 | // This makes sure that we are redirect to jetpack home so that we can see the Success Message. |