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