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: http://core.svn.wordpress.org/trunk@21345 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2012-07-25 19:59:29 +00:00
parent 9f5310274b
commit d4e0c684d3

View File

@ -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);