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

  1. Mikko Saari
    Posted 3 years 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

  • Advanced Excerpt
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

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