From 7b66ef190c085d7fcbb9e5ac72d8338fce30fd75 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Sat, 22 Apr 2017 01:11:23 +0000 Subject: [PATCH] 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 --- src/wp-includes/class-wp-editor.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wp-includes/class-wp-editor.php b/src/wp-includes/class-wp-editor.php index 7293ea1159..21353c6824 100644 --- a/src/wp-includes/class-wp-editor.php +++ b/src/wp-includes/class-wp-editor.php @@ -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.