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