Editor: Remove TinyMCE global version.
The global variable is not being used in the `editor_settings` method. Fixes #45398. Props ishitaka, noisysocks, mista-flo. Built from https://develop.svn.wordpress.org/trunk@47860 git-svn-id: http://core.svn.wordpress.org/trunk@47636 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
38b7495af7
commit
552883574b
|
@ -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 );
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.5-alpha-47859';
|
$wp_version = '5.5-alpha-47860';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue