Make WordPress Core


Ignore:
Timestamp:
01/25/2014 01:20:04 AM (11 years ago)
Author:
azaozz
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-editor.php

    r27004 r27030  
    692692        foreach ( $mce_translation as $key => $value ) {
    693693            if ( strpos( $value, '&' ) !== false )
    694                 $mce_translation[$key] = html_entity_decode( $value, ENT_QUOTES );
     694                $mce_translation[$key] = html_entity_decode( $value, ENT_QUOTES, 'UTF-8' );
    695695        }
    696696
Note: See TracChangeset for help on using the changeset viewer.