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. (#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 #67199 Incorporating changes in WordPress/wordpress-develop#7903 See https://core.trac.wordpress.org/ticket/62585 Co-authored-by: peterwilsoncc <[email protected]> Co-authored-by: Mamaduka <[email protected]>
- Loading branch information
f2ea441
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flaky tests detected in f2ea441.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.
🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/13083347449
📝 Reported issues:
/test/e2e/specs/site-editor/site-editor-url-navigation.spec.js
/test/e2e/specs/site-editor/template-revert.spec.js