Make WordPress Core

Ticket #27797: 27797.patch

File 27797.patch, 664 bytes (added by azaozz, 10 years ago)
  • src/wp-includes/class-wp-editor.php

     
    976976                $mce_translation = apply_filters( 'wp_mce_translation', $mce_translation, $mce_locale );
    977977
    978978                foreach ( $mce_translation as $key => $value ) {
     979                        // Remove strings that are not translated.
     980                        if ( $key === $value ) {
     981                                unset( $mce_translation[$key] );
     982                                continue;
     983                        }
     984
    979985                        if ( false !== strpos( $value, '&' ) ) {
    980986                                $mce_translation[$key] = html_entity_decode( $value, ENT_QUOTES, 'UTF-8' );
    981987                        }