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