Editor: Remove TinyMCE global version.

The global variable is not being used in the `editor_settings` method. 

Fixes #45398.
Props ishitaka, noisysocks, mista-flo.



git-svn-id: https://develop.svn.wordpress.org/trunk@47860 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jake Spurlock 2020-05-27 19:26:32 +00:00
parent 184118c3c9
commit d8b8495e8e
1 changed files with 0 additions and 4 deletions

View File

@ -310,14 +310,10 @@ final class _WP_Editors {
/** /**
* @since 3.3.0 * @since 3.3.0
* *
* @global string $tinymce_version
*
* @param string $editor_id Unique editor identifier, e.g. 'content'. * @param string $editor_id Unique editor identifier, e.g. 'content'.
* @param array $set Array of editor arguments. * @param array $set Array of editor arguments.
*/ */
public static function editor_settings( $editor_id, $set ) { public static function editor_settings( $editor_id, $set ) {
global $tinymce_version;
if ( empty( self::$first_init ) ) { if ( empty( self::$first_init ) ) {
if ( is_admin() ) { if ( is_admin() ) {
add_action( 'admin_print_footer_scripts', array( __CLASS__, 'editor_js' ), 50 ); add_action( 'admin_print_footer_scripts', array( __CLASS__, 'editor_js' ), 50 );