I want to limit the title max length with multibyte
-
Thank you for making it 2.6!
However, there was a problem after the update.I use bbpress in Japanese.
In ver.2.5, a code that sets the topic title to 20 characters in Japanese was added to functions.php and it worked properly.
This is the code.function title_max_length ($ default) { $ default = 20; return $ default; } add_filter ('bbp_get_title_max_length', 'title_max_length');
But after 2.6, it didn’t work.
For example, if default = 20, only 6 characters will be reflected in the title in Japanese. If it is half-width alphanumeric characters, up to 20 characters are correctly reflected.I know this is a multibyte issue, but I don’t know how to deal with it. Can I change the limit on the number of characters in a title even with multibyte?
I hope to find a good solution.I am not good at English. I’m sorry in terrible English. thank you for reading!
- You must be logged in to reply to this topic.