Ready to get started?Download WordPress


Advanced Excerpt
Replace substr() with mb_substr() (1 post)

  1. Mikko Saari
    Posted 1 year ago #

    I noticed the plugin uses regular, non-multibyte string functions, like substr(). This sometimes causes problems with UTF-8 text, when the substr() cuts the excerpt in the middle of a multibyte character. Fix is simple: replace substr() with mb_substr(). This is best done conditionally, as not all PHP installations have multibyte string functions installed.


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by Mikko Saari
  • This topic is not a support question
  • WordPress version: 3.4.1