WordPress 3.3.1 breaks my permalinks
-
We recently tried to upgrade to 3.3.1 but this caused many of our posts to break. This is because of the following link:
$title = preg_replace(‘|-+|’, ‘-‘, $title);
(formatting.php line 892)
so this URL
https://www.elephantjournal.com/2012/04/in-defense-of-yoga-pants–yogis-of-the-west–karen-macklin/would be changed into
https://www.elephantjournal.com/2012/04/in-defense-of-yoga-pants-yogis-of-the-west-karen-macklin/
and this won’t be found as the URL “in-defense-of-yoga-pants-yogis-of-the-west-karen-macklin” doesn’t exist in the database.
Is there a way to turn this stop function sanitize_title_with_dashes from getting run? without me having to hack the code of WordPress – otherwise this issue will appear again when we next get an update.
Thanks
Colin
- The topic ‘WordPress 3.3.1 breaks my permalinks’ is closed to new replies.