Make WordPress Core


Ignore:
Timestamp:
05/22/2015 05:09:38 AM (9 years ago)
Author:
wonderboymusic
Message:

Clean up @global doc blocks/imports for class-wp-editor.php.

See #32444.

File:
1 edited

Legend:

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

    r32536 r32543  
    248248
    249249    /**
     250     * @static
    250251     *
    251      * @static
     252     * @global string $wp_version
     253     * @global string $tinymce_version
     254     *
    252255     * @param string $editor_id
    253256     * @param array  $set
    254257     */
    255258    public static function editor_settings($editor_id, $set) {
     259        global $wp_version, $tinymce_version;
     260
    256261        $first_run = false;
    257262
     
    498503                    'entity_encoding' => 'raw',
    499504                    'keep_styles' => false,
    500                     'cache_suffix' => 'wp-mce-' . $GLOBALS['tinymce_version'],
     505                    'cache_suffix' => 'wp-mce-' . $tinymce_version,
    501506
    502507                    // Limit the preview styles in the menu/toolbar
     
    514519
    515520                $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
    516                 $version = 'ver=' . $GLOBALS['wp_version'];
     521                $version = 'ver=' . $wp_version;
    517522                $dashicons = includes_url( "css/dashicons$suffix.css?$version" );
    518523
     
    10651070     *
    10661071     * @static
     1072     * @global string $wp_version
    10671073     * @global string $tinymce_version
    10681074     * @global bool   $concatenate_scripts
     
    10701076     */
    10711077    public static function editor_js() {
    1072         global $tinymce_version, $concatenate_scripts, $compress_scripts;
     1078        global $wp_version, $tinymce_version, $concatenate_scripts, $compress_scripts;
    10731079
    10741080        /**
     
    11481154        $baseurl = self::$baseurl;
    11491155        // Load tinymce.js when running from /src, else load wp-tinymce.js.gz (production) or tinymce.min.js (SCRIPT_DEBUG)
    1150         $mce_suffix = false !== strpos( $GLOBALS['wp_version'], '-src' ) ? '' : '.min';
     1156        $mce_suffix = false !== strpos( $wp_version, '-src' ) ? '' : '.min';
    11511157
    11521158        if ( $tmce_on ) {
Note: See TracChangeset for help on using the changeset viewer.