Editor: fix undefined var notice in editor_js() in class-wp-editor.php.

Props littler.chicken.
Fixes #40501, see #35760.

git-svn-id: https://develop.svn.wordpress.org/trunk@40515 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2017-04-22 01:11:23 +00:00
parent ccd942ddaa
commit 7b66ef190c
1 changed files with 3 additions and 0 deletions

View File

@ -1357,6 +1357,8 @@ final class _WP_Editors {
* @static
*/
public static function editor_js() {
global $tinymce_version;
$tmce_on = ! empty( self::$mce_settings );
$mceInit = $qtInit = '';
@ -1388,6 +1390,7 @@ final class _WP_Editors {
$suffix = SCRIPT_DEBUG ? '' : '.min';
$baseurl = self::get_baseurl();
$version = 'ver=' . $tinymce_version;
/**
* Fires immediately before the TinyMCE settings are printed.