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