@@ 4272-4286 (lines=15) @@ | ||
4269 | wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
|
4270 | } |
|
4271 | break; |
|
4272 | case 'jetpack-manage-opt-out': |
|
4273 | ||
4274 | if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
|
4275 | // Don't show the banner again |
|
4276 | ||
4277 | Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
|
4278 | // redirect back to the page that had the notice |
|
4279 | if ( wp_get_referer() ) { |
|
4280 | wp_safe_redirect( wp_get_referer() ); |
|
4281 | } else { |
|
4282 | // Take me to Jetpack |
|
4283 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4284 | } |
|
4285 | } |
|
4286 | break; |
|
4287 | case 'jetpack-protect-multisite-opt-out': |
|
4288 | ||
4289 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4287-4301 (lines=15) @@ | ||
4284 | } |
|
4285 | } |
|
4286 | break; |
|
4287 | case 'jetpack-protect-multisite-opt-out': |
|
4288 | ||
4289 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
4290 | // Don't show the banner again |
|
4291 | ||
4292 | update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
|
4293 | // redirect back to the page that had the notice |
|
4294 | if ( wp_get_referer() ) { |
|
4295 | wp_safe_redirect( wp_get_referer() ); |
|
4296 | } else { |
|
4297 | // Take me to Jetpack |
|
4298 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4299 | } |
|
4300 | } |
|
4301 | break; |
|
4302 | case 'jetpack-manage-opt-in': |
|
4303 | if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
|
4304 | // This makes sure that we are redirect to jetpack home so that we can see the Success Message. |