[BUG] "Help text" tooltip displays in the wrong encoding.

2 views
Skip to first unread message

Zen Similia

unread,
Feb 19, 2010, 7:25:27 AM2/19/10
to Magic Fields
Problem: "Help text" displays in the wrong encoding.
Screen: http://rghost.ru/1017274/image.png
Wordpress version: 2.9.2
Magic Fields version: 1.3.1
Charset: UTF-8
Language: ru-RU (cyrillic)

Any solutions?

David

unread,
Feb 20, 2010, 12:51:05 AM2/20/10
to Magic Fields
Hello Zen

Yes this is a bug, thanks for report this.

if do you want fix it open the file called RCCWP_WritePostPage.php
and in the line 414 you will found this line:

$customFieldHelp = htmlentities2($customField->help_text);

Just replace that line for this:

$customFieldHelp = $customField->help_text;

And now all should be work smoothly.

David.

David

unread,
Feb 20, 2010, 12:59:11 AM2/20/10
to Magic Fields
OKs

My last solution is a little insecure because i put without escape
the help_text variable.

Now i'm going to offer you a new way to fix it.

In the same line (414) of the same file (RCWP_WritePostPage.php)

replace the that line for this:

$customFieldHelp = htmlentities($customField-
>help_text,ENT_COMPAT,'UTF-8');

now all should be work smoothly.

:)

Zen Similia

unread,
Feb 20, 2010, 3:39:36 AM2/20/10
to Magic Fields
thnx for quick answer. i hope this bug will be killed in next release
=) and Magic Fields will be much more friendly to languages other than
English...

by the way, what about localization? i couldn't find .po & .mo files
in a plugin directory. i would like to translate MF into Russian...

David

unread,
Feb 20, 2010, 7:46:04 PM2/20/10
to Magic Fields
Yes this bug will be fixed in the next release.

and the files for localization actually can you found it here:

http://github.com/hunk/Magic-Fields/tree/master/languages/

Thanks for your interest in translate Magic Fields into Russian.

David.

Reply all
Reply to author
Forward
0 new messages