Not found errors due to sanitization in sanitize_title_with_dashes
|Reported by:||xknown||Owned by:|
|Milestone:||3.3||Priority:||highest omg bbq|
|Component:||General||Keywords:||has-patch needs-testing commit|
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".