We should use mb_substr for $post_obj->post_title
-
The current code trims post_title incorrectly when post_title contains multibyte characters.
We should usemb_substr
instead ofsubstr
.- substr( $post_obj->post_title, 0, $this->title_leng ) + mb_substr( $post_obj->post_title, 0, $this->title_leng, 'UTF-8' )
https://www.ads-software.com/plugins/social-semantic-recommendation-sosere/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘We should use mb_substr for $post_obj->post_title’ is closed to new replies.