Patch for Grunge Flora WordPress theme (with Japanese)
I updated my blog’s theme to Grunge Flora that is so cute, pretty and elegant template!!
That is a great template but it seems to have Japanesea bug when used with multi byte environment. It destructs a trailing character of “Recent Comments” in Japanese comments like this;
The problem is in “src_simple_recent_comments” template function. The function uses SUBSTRING MySQL function to shrink the comment string. But SUBSTRING MySQL function has a problem that may miss to count the length of the multi byte strings.
To fix the problem, “src_simple_recent_comments” should use the mb_substr PHP function.
I made a patch file grungefloral-simple_recent_comments.diff to fix the problem.
Apply this patch if you want to use the Grunge Flora theme on Japanese blogs.
Have fun!
Sakura.
ノー!
私日本語しか読めマセーン!
大丈夫よ。
私の英語はかなり適当だわっ!!