Make WordPress Core

Changeset 58902


Ignore:
Timestamp:
08/15/2024 02:56:43 PM (8 weeks ago)
Author:
SergeyBiryukov
Message:

Script Loader: Remove redundant check in wp_register_tinymce_scripts().

Since removing the build steps for a gzipped version of TinyMCE, the check whether gzip is supported on the server is superfluous. It may also result in the uncompressed files being used when the compressed files are available and could be used.

Follow-up to [44114], [44651].

Props MattyRob, hbhalodia.
Fixes #61862.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r58880 r58902  
    5555    script_concat_settings();
    5656
    57     $compressed = $compress_scripts && $concatenate_scripts && isset( $_SERVER['HTTP_ACCEPT_ENCODING'] )
    58         && false !== stripos( $_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip' ) && ! $force_uncompressed;
     57    $compressed = $compress_scripts && $concatenate_scripts && ! $force_uncompressed;
    5958
    6059    /*
    61      * Load tinymce.js when running from /src, otherwise load wp-tinymce.js.gz (in production)
     60     * Load tinymce.js when running from /src, otherwise load wp-tinymce.js (in production)
    6261     * or tinymce.min.js (when SCRIPT_DEBUG is true).
    6362     */
Note: See TracChangeset for help on using the changeset viewer.