WordPress.org

Make WordPress Core

Changeset 47860


Ignore:
Timestamp:
05/27/2020 07:26:32 PM (16 months ago)
Author:
whyisjake
Message:

Editor: Remove TinyMCE global version.

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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-editor.php

    r47808 r47860  
    311311     * @since 3.3.0
    312312     *
    313      * @global string $tinymce_version
    314      *
    315313     * @param string $editor_id Unique editor identifier, e.g. 'content'.
    316314     * @param array  $set       Array of editor arguments.
    317315     */
    318316    public static function editor_settings( $editor_id, $set ) {
    319         global $tinymce_version;
    320 
    321317        if ( empty( self::$first_init ) ) {
    322318            if ( is_admin() ) {
Note: See TracChangeset for help on using the changeset viewer.