WordPress.org

Make WordPress Core

Ticket #21350: 21350.patch

File 21350.patch, 430 bytes (added by needle, 6 years ago)
  • .php

    old new function wp_mce_translation() { 
    545545                'alt' => __('Alternate Text')
    546546        );
    547547
     548        if ( ! class_exists( '_WP_Editors' ) )
     549                require( ABSPATH . WPINC . '/class-wp-editor.php' );
     550
    548551        $locale = _WP_Editors::$mce_locale;
    549552
    550553        $translated = 'tinyMCE.addI18n({' . $locale . ':' . json_encode( $default ) . "});\n";