|
@@ 4066-4080 (lines=15) @@
|
| 4063 |
|
wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
| 4064 |
|
} |
| 4065 |
|
break; |
| 4066 |
|
case 'jetpack-manage-opt-out': |
| 4067 |
|
|
| 4068 |
|
if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
| 4069 |
|
// Don't show the banner again |
| 4070 |
|
|
| 4071 |
|
Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
| 4072 |
|
// redirect back to the page that had the notice |
| 4073 |
|
if ( wp_get_referer() ) { |
| 4074 |
|
wp_safe_redirect( wp_get_referer() ); |
| 4075 |
|
} else { |
| 4076 |
|
// Take me to Jetpack |
| 4077 |
|
wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
| 4078 |
|
} |
| 4079 |
|
} |
| 4080 |
|
break; |
| 4081 |
|
case 'jetpack-protect-multisite-opt-out': |
| 4082 |
|
|
| 4083 |
|
if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4081-4095 (lines=15) @@
|
| 4078 |
|
} |
| 4079 |
|
} |
| 4080 |
|
break; |
| 4081 |
|
case 'jetpack-protect-multisite-opt-out': |
| 4082 |
|
|
| 4083 |
|
if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
| 4084 |
|
// Don't show the banner again |
| 4085 |
|
|
| 4086 |
|
update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
| 4087 |
|
// redirect back to the page that had the notice |
| 4088 |
|
if ( wp_get_referer() ) { |
| 4089 |
|
wp_safe_redirect( wp_get_referer() ); |
| 4090 |
|
} else { |
| 4091 |
|
// Take me to Jetpack |
| 4092 |
|
wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
| 4093 |
|
} |
| 4094 |
|
} |
| 4095 |
|
break; |
| 4096 |
|
case 'jetpack-manage-opt-in': |
| 4097 |
|
if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
| 4098 |
|
// This makes sure that we are redirect to jetpack home so that we can see the Success Message. |