[wp-trac] [WordPress Trac] #63017: Compression via PHP documented and in URL but not used anymore

WordPress Trac noreply at wordpress.org
Tue Feb 25 17:57:09 UTC 2025


#63017: Compression via PHP documented and in URL but not used anymore
---------------------------+-----------------------------
 Reporter:  zodiac1978     |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Script Loader  |    Version:
 Severity:  normal         |   Keywords:  needs-patch
  Focuses:  docs           |
---------------------------+-----------------------------
 It looks like these three constants are not used anymore:

 {{{
 define( ‘COMPRESS_CSS’, true );
 define( ‘COMPRESS_SCRIPTS’, true );
 define( ‘ENFORCE_GZIP’, true )
 }}}

 In #44815 the check for the "c" parameter (for compression) in load-
 scripts.php and load-styles.php was removed.

 But it is still used in this file:
 https://github.com/WordPress/WordPress/blob/master/wp-includes/script-
 loader.php#L2199
 and
 https://github.com/WordPress/WordPress/blob/master/wp-includes/script-
 loader.php#L2377

 And documented at the beginning of the file:
 https://github.com/WordPress/WordPress/blob/master/wp-includes/script-
 loader.php#L8-L10

 It looks like we can safely remove this or is there a reason to keep it?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63017>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list