|
@@ 4253-4267 (lines=15) @@
|
| 4250 |
|
wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
| 4251 |
|
} |
| 4252 |
|
break; |
| 4253 |
|
case 'jetpack-manage-opt-out': |
| 4254 |
|
|
| 4255 |
|
if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
| 4256 |
|
// Don't show the banner again |
| 4257 |
|
|
| 4258 |
|
Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
| 4259 |
|
// redirect back to the page that had the notice |
| 4260 |
|
if ( wp_get_referer() ) { |
| 4261 |
|
wp_safe_redirect( wp_get_referer() ); |
| 4262 |
|
} else { |
| 4263 |
|
// Take me to Jetpack |
| 4264 |
|
wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
| 4265 |
|
} |
| 4266 |
|
} |
| 4267 |
|
break; |
| 4268 |
|
case 'jetpack-protect-multisite-opt-out': |
| 4269 |
|
|
| 4270 |
|
if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4268-4282 (lines=15) @@
|
| 4265 |
|
} |
| 4266 |
|
} |
| 4267 |
|
break; |
| 4268 |
|
case 'jetpack-protect-multisite-opt-out': |
| 4269 |
|
|
| 4270 |
|
if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
| 4271 |
|
// Don't show the banner again |
| 4272 |
|
|
| 4273 |
|
update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
| 4274 |
|
// redirect back to the page that had the notice |
| 4275 |
|
if ( wp_get_referer() ) { |
| 4276 |
|
wp_safe_redirect( wp_get_referer() ); |
| 4277 |
|
} else { |
| 4278 |
|
// Take me to Jetpack |
| 4279 |
|
wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
| 4280 |
|
} |
| 4281 |
|
} |
| 4282 |
|
break; |
| 4283 |
|
case 'jetpack-manage-opt-in': |
| 4284 |
|
if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
| 4285 |
|
// This makes sure that we are redirect to jetpack home so that we can see the Success Message. |