Get Recent Comments is a very popular wordpress plug-in, to allow you show recent comments and trackbacks in you sidebar.
In recent update, it adds cache function so it will reduce db access and processing a lot.
However for utf-8 users, we’re running into two problems, first is the php wordwrap function is not utf-8 aware, and will be cut incorrectly. Second is that in wordpress, update_option() will not save serialized utf8 values correctly, so the cache function will not work
at all .
I’ve done quick fixes on these problem:
- using utf8_wordwrap() from php.net, to replace wordwrap().
do base64_encode() before saving the cache to avoid escaping problem.
Here is the fixed file, you can grab if you need to use it in utf8 environment.