[wp-trac] [WordPress Trac] #53910: `sanitize_title_with_dashes` returns partial encoded values in permalink
WordPress Trac
noreply at wordpress.org
Tue Aug 10 22:21:14 UTC 2021
#53910: `sanitize_title_with_dashes` returns partial encoded values in permalink
-------------------------------------+-------------------------------------
Reporter: costdev | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Permalinks | Version: 5.8
Severity: major | Resolution:
Keywords: has-patch has-unit- | Focuses: ui, rtl,
tests | administration
-------------------------------------+-------------------------------------
Comment (by costdev):
Thanks @audrasjb!
I've just updated the PR/patch to:
- remove the `$title_seems_utf8` variable
- remove the `$length` argument in the original call `utf8_uri_encode()`
- trim any title that `seems_utf8()` to `200` at the end of
`sanitize_title_with_dashes()`.
PHPUnit tests are successful.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53910#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list