mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
TinyMCE: fix the compat3x plugin appending 'en.' to button titles. Set charset to UTF-8 in html_entity_decode() for translated strings. See #24067, see #26875.
git-svn-id: https://develop.svn.wordpress.org/trunk@27030 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -691,7 +691,7 @@ final class _WP_Editors {
|
||||
|
||||
foreach ( $mce_translation as $key => $value ) {
|
||||
if ( strpos( $value, '&' ) !== false )
|
||||
$mce_translation[$key] = html_entity_decode( $value, ENT_QUOTES );
|
||||
$mce_translation[$key] = html_entity_decode( $value, ENT_QUOTES, 'UTF-8' );
|
||||
}
|
||||
|
||||
return "tinymce.addI18n( '$mce_locale', " . json_encode( $mce_translation ) . ");\n" .
|
||||
|
||||
Reference in New Issue
Block a user