WordPress.org

Make WordPress Core

Changeset 30294


Ignore:
Timestamp:
11/10/2014 01:59:23 AM (6 years ago)
Author:
azaozz
Message:

TinyMCE: remove strings that are not translated before outputting the translations. Fixes #27797.

File:
1 edited

Legend:

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

    r30173 r30294  
    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' );
Note: See TracChangeset for help on using the changeset viewer.