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:
parent
ccd942ddaa
commit
7b66ef190c
@ -1357,6 +1357,8 @@ final class _WP_Editors {
|
|||||||
* @static
|
* @static
|
||||||
*/
|
*/
|
||||||
public static function editor_js() {
|
public static function editor_js() {
|
||||||
|
global $tinymce_version;
|
||||||
|
|
||||||
$tmce_on = ! empty( self::$mce_settings );
|
$tmce_on = ! empty( self::$mce_settings );
|
||||||
$mceInit = $qtInit = '';
|
$mceInit = $qtInit = '';
|
||||||
|
|
||||||
@ -1388,6 +1390,7 @@ final class _WP_Editors {
|
|||||||
|
|
||||||
$suffix = SCRIPT_DEBUG ? '' : '.min';
|
$suffix = SCRIPT_DEBUG ? '' : '.min';
|
||||||
$baseurl = self::get_baseurl();
|
$baseurl = self::get_baseurl();
|
||||||
|
$version = 'ver=' . $tinymce_version;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fires immediately before the TinyMCE settings are printed.
|
* Fires immediately before the TinyMCE settings are printed.
|
||||||
|
Loading…
Reference in New Issue
Block a user