Opened 10 months ago
Closed 3 weeks ago
#61317 closed defect (bug) (fixed)
Customizer load wrong page for customizing the "Page".
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.8 | Priority: | normal |
Severity: | normal | Version: | 6.6 |
Component: | Customize | Keywords: | has-testing-info has-patch commit |
Focuses: | Cc: |
Description
Tested with WordPress 6.6-alpha-58225
All plugins are disabled/deactivated.
Themes that have this problem: all classic themes that support customizer such as Twenty Twenty, Twenty Twenty-One.
Step to reproduce:
- Create new page with unicode language for example หน้าภาษาไทย. Enter any content language.
- Publish and view the page.
- Click on customize.
- The customizer load home page instead of selected page (หน้าภาษาไทย). Some WordPress installation, they are showing 404 error page.
This is working correctly on version 6.5.3 but not with 6.6x
Change History (16)
#2
@
6 months ago
- Keywords needs-patch has-testing-info added
- Milestone changed from Awaiting Review to 6.6.3
Hello @okvee,
Welcome to WordPress Core's Trac.
I too am able to reproduce this issue on 6.6.0, 6.6.2, and 6.7 Beta 1. Also confirmed it worked on 6.5.5, indicating the bug was introduced during the 6.6.0 cycle.
Moving it into 6.6.3 and adding keywords to denote current status.
This ticket was mentioned in PR #7512 on WordPress/wordpress-develop by @veryard.
6 months ago
#3
- Keywords has-patch added; needs-patch removed
Replaced sanitize_text_field() with esc_url_raw() for sanitizing URLs passed via $_REQUEST['url']
. This change fixes an issue where the URL example.com/หน้าภาษาไทย
would incorrectly return example.com//
due to improper sanitization when clicking on the Customize button through the admin bar.
This ensures that URLs containing non-Latin characters are correctly preserved and prevents unexpected behavior in the customizer.
Happy to hear feedback on this approach or if there's a better way to handle this scenario! Let me know if this change introduces any concerns.
@dilip2615 commented on PR #7512:
5 months ago
#4
Yes, it's working properly.
#5
@
5 months ago
Test Report
Patch tested: https://patch-diff.githubusercontent.com/raw/WordPress/wordpress-develop/pull/7512.diff
Environment
WordPress: 6.7-beta3
PHP: 8.1.23
Database: MySQL 8.0.16
Browser: Chrome 129.0.0.0
OS: Windows 11
Theme: Twenty Twenty 2.7
MU Plugins: None activated
Before patch
Check the screencast: https://d.pr/v/FK8lGl
After patch
Check the screencast https://d.pr/v/2uUJ48
Results
✅ Issue is resolved with the patch.
#9
@
5 months ago
- Milestone changed from 6.6.3 to 6.7.1
Since 6.7 RC1 is due out any moment and there are no plans to ship a 6.6.3, I'm going to punt this so it can be properly considered.
This ticket was mentioned in Slack in #core by desrosj. View the logs.
4 months ago
#11
@
4 months ago
- Milestone changed from 6.7.1 to 6.7.2
Because of a few bug reports opened since 6.7 was released, the Core team is evaluating the need for a short 6.7.1 cycle (possibly next week).
To help prepare for this scenario in case it's decided to move forward, I'm going to punt this to the 6.7.2 milestone. This issue was not introduced in 6.7, so it now falls outside of the focus for 6.7.1 as currently defined.
This ticket was mentioned in Slack in #core by jorbin. View the logs.
2 months ago
#13
@
2 months ago
- Milestone changed from 6.7.2 to 6.8
Based on @hellofromTonya's comment, I think this is not a candidate for 6.7.2
@audrasjb commented on PR #7512:
3 weeks ago
#14
I committed the change proposed by @swissspidy as it fixes the same issue which was occurring when we try to return back to the front-end page.
Reproduction Report
This report validates that the issue can be reproduced.
Environment
Actual Results
Additional Notes
Steps to Reproduce
Expected Results
When testing a patch to validate it works as expected:
When reproducing a bug:
Supplemental Artifacts
Twenty Twenty: Video(https://www.loom.com/share/76165b8c96d24034a2c3ac61462dcffe)?
Twenty Twenty-One: Video(https://www.loom.com/share/013b58d484dc46e7977117b20cff3920)?