[wp-trac] [WordPress Trac] #21013: Badly truncated slugs in posts with similar, long non-latin titles
WordPress Trac
wp-trac at lists.automattic.com
Mon Jun 18 17:38:15 UTC 2012
#21013: Badly truncated slugs in posts with similar, long non-latin titles
--------------------------+-----------------------------
Reporter: nevma | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Permalinks | Version: 3.4
Severity: normal | Keywords:
--------------------------+-----------------------------
When WP automatically generates a slug for a post with non-latin title AND
a number has to be appended to the slug to avoid duplicate slugs, then the
resulting slug may be badly truncated.
To reproduce the problem:
Create and publish a post with this title (without the quotes): "Αρνάκι
άσπρο και παχύ της μάνας του καμάρι"
Create and publish another one with this title (without the quotes):
"Αρνάκι άσπρο και παχύ της μάνας του καμάρι, και άλλα τραγούδια"
In both cases, let WP create the slug.
You will see that the second slug is broken and the URL results in a 404
error.
It seems that, in this scenario, WP does not take into account the fact
that the new slug may contain url-encoded characters from multibyte
character sets, when truncating it.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21013>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list