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
This commit is contained in:
Andrew Ozz 2012-07-25 19:59:29 +00:00
parent 6d9357444c
commit 3063d8c886
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,9 @@
if ( ! defined( 'ABSPATH' ) ) if ( ! defined( 'ABSPATH' ) )
exit; exit;
if ( ! class_exists( '_WP_Editors' ) )
require( ABSPATH . WPINC . '/class-wp-editor.php' );
// deprecated, not used // deprecated, not used
function mce_escape($text) { function mce_escape($text) {
return esc_js($text); return esc_js($text);