さんまがおいしい季節だねー(´・ω・`)

Patch for Grunge Flora WordPress theme (with Japanese)

WordPress,一人でできるもん! — タグ: , , — さくら @ 2009/03/12 23:27

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;

A broken Japanese comment

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.

2件のコメント »

  1. ノー!
    私日本語しか読めマセーン!

    コメント by ロレッタ — 2009 年 3 月 13 日 @ 00:36
  2. 大丈夫よ。
    私の英語はかなり適当だわっ!!

    コメント by さくら — 2009 年 3 月 13 日 @ 01:02

この投稿へのコメントの RSS フィード。 TrackBack URI

コメントする

Copyright © 2017 さくらたんどっとびーず | powered by WordPress with Barecity