[wp-trac] [WordPress Trac] #55117: Possible 5.9 Bug: Unknown character ( or %ef%bf%bc ) on content title
WordPress Trac
noreply at wordpress.org
Wed Feb 9 18:07:57 UTC 2022
#55117: Possible 5.9 Bug: Unknown character ( or %ef%bf%bc ) on content title
--------------------------+------------------------------
Reporter: cantuaria | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 5.9
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by maciejmackowiak):
Replying to [comment:11 SergeyBiryukov]:
> Replying to [comment:10 archon810]:
> > The term actually has `E2 80 8B` after "u" which explains why the slug
was created like that. So 5.9 will start stripping these characters from
the slug for newly created terms, which is great. But something about this
change also had the effect of breaking existing urls, which now 404.
>
> Hmm, that commit does strip these characters for newly created terms,
but I'm not sure it's related to 404 errors, as the replacement only runs
on saving, and is in line with how similar replacements were added in the
past, without breaking any URLs. So a deeper investigation would be
appreciated here. Do the URLs start working if that commit is reverted?
I've been able to reproduce the issue with the following steps:
1. create category with name AccuBattery (with the zero width space of
course) using wp 5.8.3
2. the slug is accu%E2%80%8Bbattery
3. go to category page /category/accu%E2%80%8Bbattery/ - it works
4. update wp to 5.9
5. the category page returns 404(and the link in wp-admin to view the
category is also broken)
6. downgrade to 5.8.3 and the category page works
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55117#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list