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:
parent
184118c3c9
commit
d8b8495e8e
@ -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 );
|
||||||
|
Loading…
Reference in New Issue
Block a user