|
@@ 4571-4585 (lines=15) @@
|
| 4568 |
|
wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
| 4569 |
|
} |
| 4570 |
|
break; |
| 4571 |
|
case 'jetpack-manage-opt-out': |
| 4572 |
|
|
| 4573 |
|
if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
| 4574 |
|
// Don't show the banner again |
| 4575 |
|
|
| 4576 |
|
Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
| 4577 |
|
// redirect back to the page that had the notice |
| 4578 |
|
if ( wp_get_referer() ) { |
| 4579 |
|
wp_safe_redirect( wp_get_referer() ); |
| 4580 |
|
} else { |
| 4581 |
|
// Take me to Jetpack |
| 4582 |
|
wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
| 4583 |
|
} |
| 4584 |
|
} |
| 4585 |
|
break; |
| 4586 |
|
case 'jetpack-protect-multisite-opt-out': |
| 4587 |
|
|
| 4588 |
|
if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4586-4600 (lines=15) @@
|
| 4583 |
|
} |
| 4584 |
|
} |
| 4585 |
|
break; |
| 4586 |
|
case 'jetpack-protect-multisite-opt-out': |
| 4587 |
|
|
| 4588 |
|
if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
| 4589 |
|
// Don't show the banner again |
| 4590 |
|
|
| 4591 |
|
update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
| 4592 |
|
// redirect back to the page that had the notice |
| 4593 |
|
if ( wp_get_referer() ) { |
| 4594 |
|
wp_safe_redirect( wp_get_referer() ); |
| 4595 |
|
} else { |
| 4596 |
|
// Take me to Jetpack |
| 4597 |
|
wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
| 4598 |
|
} |
| 4599 |
|
} |
| 4600 |
|
break; |
| 4601 |
|
case 'jetpack-manage-opt-in': |
| 4602 |
|
if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
| 4603 |
|
// This makes sure that we are redirect to jetpack home so that we can see the Success Message. |