Changes between Initial Version and Version 1 of Ticket #20399
- Timestamp:
- 04/09/2012 08:01:11 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #20399 – Description
initial v1 3 3 I have tracked this down to line 892 of /wp-includes/formatting.php which is: 4 4 5 $title = preg_replace('|-+|', '-', $title); 5 `$title = preg_replace('|-+|', '-', $title);` 6 6 7 7 and so it replaces more than 1 consecutive occurance of - with a single -. And this is as the point the code checks the database. Thus a URL e.g. "colin---wiseman---2012" gets changed to "colin-wiseman-2012" which is not a name of a post in the database.