Skip to content

Commit 8076a4c

Browse files
committed
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
1 parent 8d601b0 commit 8076a4c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

wp-includes/js/tinymce/langs/wp-langs.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ function mce_escape($text) {
88
return esc_js($text);
99
}
1010

11+
if ( ! class_exists( '_WP_Editors' ) )
12+
require( ABSPATH . WPINC . '/class-wp-editor.php' );
13+
1114
function wp_mce_translation() {
1215

1316
$default = array(

0 commit comments

Comments
 (0)