From d8b8495e8e995be761f493057dbbdc5432a5eed3 Mon Sep 17 00:00:00 2001 From: Jake Spurlock Date: Wed, 27 May 2020 19:26:32 +0000 Subject: [PATCH] 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 --- src/wp-includes/class-wp-editor.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/wp-includes/class-wp-editor.php b/src/wp-includes/class-wp-editor.php index 3ed8ffdcb0..887b899b79 100644 --- a/src/wp-includes/class-wp-editor.php +++ b/src/wp-includes/class-wp-editor.php @@ -310,14 +310,10 @@ final class _WP_Editors { /** * @since 3.3.0 * - * @global string $tinymce_version - * * @param string $editor_id Unique editor identifier, e.g. 'content'. * @param array $set Array of editor arguments. */ public static function editor_settings( $editor_id, $set ) { - global $tinymce_version; - if ( empty( self::$first_init ) ) { if ( is_admin() ) { add_action( 'admin_print_footer_scripts', array( __CLASS__, 'editor_js' ), 50 );