Modifying the default title. Multi-byte languages.
-
saswp_get_the_title() function of your plugin does not consider multi-byte languages. The code part
if (strlen($title) > 110){ $title = substr($title, 0, 106) . ' ...'; }
cuts the default title not in a correct way when the 106-th symbol is multi-byte (for example cyrillic), so it returns a string with a ?-character.
In my case i changed this code part toif (mb_strlen($title, 'UTF-8') > 110){ $title = mb_substr($title, 0, 106, 'UTF-8') . ' ...'; }
.
Fix it please.
Best regards, MaxRGB.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Modifying the default title. Multi-byte languages.’ is closed to new replies.