|
@@ 4707-4721 (lines=15) @@
|
| 4704 |
|
wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
| 4705 |
|
} |
| 4706 |
|
break; |
| 4707 |
|
case 'jetpack-manage-opt-out': |
| 4708 |
|
|
| 4709 |
|
if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
| 4710 |
|
// Don't show the banner again |
| 4711 |
|
|
| 4712 |
|
Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
| 4713 |
|
// redirect back to the page that had the notice |
| 4714 |
|
if ( wp_get_referer() ) { |
| 4715 |
|
wp_safe_redirect( wp_get_referer() ); |
| 4716 |
|
} else { |
| 4717 |
|
// Take me to Jetpack |
| 4718 |
|
wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
| 4719 |
|
} |
| 4720 |
|
} |
| 4721 |
|
break; |
| 4722 |
|
case 'jetpack-protect-multisite-opt-out': |
| 4723 |
|
|
| 4724 |
|
if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4722-4736 (lines=15) @@
|
| 4719 |
|
} |
| 4720 |
|
} |
| 4721 |
|
break; |
| 4722 |
|
case 'jetpack-protect-multisite-opt-out': |
| 4723 |
|
|
| 4724 |
|
if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
| 4725 |
|
// Don't show the banner again |
| 4726 |
|
|
| 4727 |
|
update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
| 4728 |
|
// redirect back to the page that had the notice |
| 4729 |
|
if ( wp_get_referer() ) { |
| 4730 |
|
wp_safe_redirect( wp_get_referer() ); |
| 4731 |
|
} else { |
| 4732 |
|
// Take me to Jetpack |
| 4733 |
|
wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
| 4734 |
|
} |
| 4735 |
|
} |
| 4736 |
|
break; |
| 4737 |
|
case 'jetpack-manage-opt-in': |
| 4738 |
|
if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
| 4739 |
|
// This makes sure that we are redirect to jetpack home so that we can see the Success Message. |