Make WordPress Core

Changeset 28112 for trunk/src


Ignore:
Timestamp:
04/14/2014 03:22:38 AM (11 years ago)
Author:
nacin
Message:

TinyMCE: Always load translations, even in English, as we modify some strings.

Move a setting to after the translations filter, and remove unused strings.

see #24067.

File:
1 edited

Legend:

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

    r28099 r28112  
    755755            'New document' => __( 'New document' ),
    756756            'Formats' => _x( 'Formats', 'TinyMCE' ),
    757             'Headers' => _x( 'Headings', 'TinyMCE' ),
    758             'Header 1' => __( 'Heading 1' ),
    759             'Header 2' => __( 'Heading 2' ),
    760             'Header 3' => __( 'Heading 3' ),
    761             'Header 4' => __( 'Heading 4' ),
    762             'Header 5' => __( 'Heading 5' ),
    763             'Header 6' => __( 'Heading 6' ),
    764757
    765758            'Headings' => _x( 'Headings', 'TinyMCE' ),
     
    984977        $mce_locale = self::$mce_locale;
    985978
    986         // Set direction
    987         if ( is_rtl() ) {
    988             $mce_translation['_dir'] = 'rtl';
    989         }
    990 
    991979        /**
    992980         * Filter translated strings prepared for TinyMCE.
     
    1003991                $mce_translation[$key] = html_entity_decode( $value, ENT_QUOTES, 'UTF-8' );
    1004992            }
     993        }
     994
     995        // Set direction
     996        if ( is_rtl() ) {
     997            $mce_translation['_dir'] = 'rtl';
    1005998        }
    1006999
     
    10981091            }
    10991092
    1100             if ( 'en' != self::$mce_locale )
    1101                 echo "<script type='text/javascript'>\n" . self::wp_mce_translation() . "</script>\n";
     1093            echo "<script type='text/javascript'>\n" . self::wp_mce_translation() . "</script>\n";
    11021094
    11031095            if ( self::$ext_plugins ) {
Note: See TracChangeset for help on using the changeset viewer.