[wp-trac] [WordPress Trac] #19292: Not found errors due to sanitization in sanitize_title_with_dashes
WordPress Trac
wp-trac at lists.automattic.com
Fri Nov 18 17:50:16 UTC 2011
#19292: Not found errors due to sanitization in sanitize_title_with_dashes
--------------------------+-----------------------------
Reporter: xknown | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
As a consecuence of #10797, the patch to remove some characters like nbsp,
ndash, mdash from slugs, existing posts that contained these characters
are not longer accessible.
This new code should only execute on every post/page save. However, when
preparing the SQL query needed to find posts by slug, WP.org core uses the
sanitize_title function, which assumes by default that we are saving the
slug. Thus, if an existing post has "mymasscom%c2%a0class" as slug, then
starting from that date these posts are not accesible because the searched
slug is "mymasscom-class".
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19292>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list