From 3063d8c88695a2cbeb18d51ffbefad9089b730a5 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Wed, 25 Jul 2012 19:59:29 +0000 Subject: [PATCH] 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 trunk git-svn-id: https://develop.svn.wordpress.org/trunk@21345 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/js/tinymce/langs/wp-langs.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/js/tinymce/langs/wp-langs.php b/wp-includes/js/tinymce/langs/wp-langs.php index f9586d600e..fa416303c1 100644 --- a/wp-includes/js/tinymce/langs/wp-langs.php +++ b/wp-includes/js/tinymce/langs/wp-langs.php @@ -3,6 +3,9 @@ if ( ! defined( 'ABSPATH' ) ) exit; +if ( ! class_exists( '_WP_Editors' ) ) + require( ABSPATH . WPINC . '/class-wp-editor.php' ); + // deprecated, not used function mce_escape($text) { return esc_js($text);