|
@@ 4327-4341 (lines=15) @@
|
| 4324 |
|
wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
| 4325 |
|
} |
| 4326 |
|
break; |
| 4327 |
|
case 'jetpack-manage-opt-out': |
| 4328 |
|
|
| 4329 |
|
if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
| 4330 |
|
// Don't show the banner again |
| 4331 |
|
|
| 4332 |
|
Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
| 4333 |
|
// redirect back to the page that had the notice |
| 4334 |
|
if ( wp_get_referer() ) { |
| 4335 |
|
wp_safe_redirect( wp_get_referer() ); |
| 4336 |
|
} else { |
| 4337 |
|
// Take me to Jetpack |
| 4338 |
|
wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
| 4339 |
|
} |
| 4340 |
|
} |
| 4341 |
|
break; |
| 4342 |
|
case 'jetpack-protect-multisite-opt-out': |
| 4343 |
|
|
| 4344 |
|
if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4342-4356 (lines=15) @@
|
| 4339 |
|
} |
| 4340 |
|
} |
| 4341 |
|
break; |
| 4342 |
|
case 'jetpack-protect-multisite-opt-out': |
| 4343 |
|
|
| 4344 |
|
if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
| 4345 |
|
// Don't show the banner again |
| 4346 |
|
|
| 4347 |
|
update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
| 4348 |
|
// redirect back to the page that had the notice |
| 4349 |
|
if ( wp_get_referer() ) { |
| 4350 |
|
wp_safe_redirect( wp_get_referer() ); |
| 4351 |
|
} else { |
| 4352 |
|
// Take me to Jetpack |
| 4353 |
|
wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
| 4354 |
|
} |
| 4355 |
|
} |
| 4356 |
|
break; |
| 4357 |
|
case 'jetpack-manage-opt-in': |
| 4358 |
|
if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
| 4359 |
|
// This makes sure that we are redirect to jetpack home so that we can see the Success Message. |