Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Site Editor: Use temporary redirects for deprecated URLs. (WordPress#…
…68971) Modifies the redirects from deprecated site-editor URLs to use 302 temporary redirects rather than 301 permanent redirects. This prevents the browser from caching the redirect as the destination will differ for logged in and logged out users. This also switches from using `wp_redirect()` to `wp_safe_redirect()` in accordance with best practices when redirecting within a WordPress site. Follow up to WordPress#67199 Incorporating changes in WordPress/wordpress-develop#7903 See https://core.trac.wordpress.org/ticket/62585 Co-authored-by: peterwilsoncc <peterwilsoncc@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
- Loading branch information