[wp-trac] [WordPress Trac] #58302: Deprecate and disable the unused compression_test() and wp_ajax_wp_compression_test()

WordPress Trac noreply at wordpress.org
Wed May 24 18:00:25 UTC 2023


#58302: Deprecate and disable the unused compression_test() and
wp_ajax_wp_compression_test()
---------------------------+---------------------
 Reporter:  azaozz         |       Owner:  (none)
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  6.3
Component:  Script Loader  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:
---------------------------+---------------------

Comment (by juzar):

 Hello @azaozz,
 I looked into deprecate these functions and created the patch, the
 function compression_test is being used in the wp-admin/admin-footer.php
 file on line:107 which is causing the performance test to fail.


 {{{
 // get_site_option() won't exist when auto upgrading from <= 2.7.
 if ( function_exists( 'get_site_option' )
         && false === get_site_option( 'can_compress_scripts' )
 ) {
         compression_test();
 }

 }}}

 I think removing this block of code would fix the e2e testing issue.

 Please correct me if I am going in the wrong direction with this.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58302#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list