Bail out themes and plugins that have copied code from core and don't maintain it by requiring class-wp-editor.php in wp-langs.php, fixes #21350 for 3.4

git-svn-id: https://develop.svn.wordpress.org/branches/3.4@21344 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2012-07-25 19:58:10 +00:00
parent 8d601b0812
commit 8076a4ce88

View File

@ -8,6 +8,9 @@ function mce_escape($text) {
return esc_js($text);
}
if ( ! class_exists( '_WP_Editors' ) )
require( ABSPATH . WPINC . '/class-wp-editor.php' );
function wp_mce_translation() {
$default = array(