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. Built from https://develop.svn.wordpress.org/trunk@58902 git-svn-id: http://core.svn.wordpress.org/trunk@58298 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1b400d5c47
commit
c6324a7388
|
@ -54,11 +54,10 @@ function wp_register_tinymce_scripts( $scripts, $force_uncompressed = false ) {
|
|||
|
||||
script_concat_settings();
|
||||
|
||||
$compressed = $compress_scripts && $concatenate_scripts && isset( $_SERVER['HTTP_ACCEPT_ENCODING'] )
|
||||
&& false !== stripos( $_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip' ) && ! $force_uncompressed;
|
||||
$compressed = $compress_scripts && $concatenate_scripts && ! $force_uncompressed;
|
||||
|
||||
/*
|
||||
* Load tinymce.js when running from /src, otherwise load wp-tinymce.js.gz (in production)
|
||||
* Load tinymce.js when running from /src, otherwise load wp-tinymce.js (in production)
|
||||
* or tinymce.min.js (when SCRIPT_DEBUG is true).
|
||||
*/
|
||||
if ( $compressed ) {
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.7-alpha-58901';
|
||||
$wp_version = '6.7-alpha-58902';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue