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