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