@@ 4210-4224 (lines=15) @@ | ||
4207 | wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
|
4208 | } |
|
4209 | break; |
|
4210 | case 'jetpack-manage-opt-out': |
|
4211 | ||
4212 | if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
|
4213 | // Don't show the banner again |
|
4214 | ||
4215 | Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
|
4216 | // redirect back to the page that had the notice |
|
4217 | if ( wp_get_referer() ) { |
|
4218 | wp_safe_redirect( wp_get_referer() ); |
|
4219 | } else { |
|
4220 | // Take me to Jetpack |
|
4221 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4222 | } |
|
4223 | } |
|
4224 | break; |
|
4225 | case 'jetpack-protect-multisite-opt-out': |
|
4226 | ||
4227 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4225-4239 (lines=15) @@ | ||
4222 | } |
|
4223 | } |
|
4224 | break; |
|
4225 | case 'jetpack-protect-multisite-opt-out': |
|
4226 | ||
4227 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
4228 | // Don't show the banner again |
|
4229 | ||
4230 | update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
|
4231 | // redirect back to the page that had the notice |
|
4232 | if ( wp_get_referer() ) { |
|
4233 | wp_safe_redirect( wp_get_referer() ); |
|
4234 | } else { |
|
4235 | // Take me to Jetpack |
|
4236 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4237 | } |
|
4238 | } |
|
4239 | break; |
|
4240 | case 'jetpack-manage-opt-in': |
|
4241 | if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
|
4242 | // This makes sure that we are redirect to jetpack home so that we can see the Success Message. |