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

Props littler.chicken.
Fixes #40501, see #35760.
Built from https://develop.svn.wordpress.org/trunk@40515


git-svn-id: http://core.svn.wordpress.org/trunk@40391 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2017-04-22 01:12:44 +00:00
parent e45ee36b84
commit c7058c739d
2 changed files with 4 additions and 1 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.

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.8-alpha-40513';
$wp_version = '4.8-alpha-40515';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.