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