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