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