[Plugin: Cyr-To-Lat] Bug with slugs containing trailing non-alphanumerics
-
When post’s slug contains some non-alphanumeric characters at the beginning or the end – they’re converted to multiple dashes. Example -> 20” are converted into 20–.
Here is the fix:
add the next code to line 38:
$title = preg_replace('/\-+/', '-', $title); $title = preg_replace('/^-+/', '', $title); $title = preg_replace('/-+$/', '', $title);
- The topic ‘[Plugin: Cyr-To-Lat] Bug with slugs containing trailing non-alphanumerics’ is closed to new replies.