[wp-trac] [WordPress Trac] #53306: Cleaner Code admin-footer.php ln 109

WordPress Trac noreply at wordpress.org
Mon May 31 09:20:32 UTC 2021


#53306: Cleaner Code admin-footer.php ln 109
------------------------------+-----------------------------
 Reporter:  jamil95           |      Owner:  (none)
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  General           |    Version:  trunk
 Severity:  minor             |   Keywords:
  Focuses:  coding-standards  |
------------------------------+-----------------------------
 Before:

 {{{#!php
 <?php
 if ( function_exists( 'get_site_option' ) ) {
         if ( false === get_site_option( 'can_compress_scripts' ) ) {
                 compression_test();
         }
 }

 }}}





 After:
 {{{#!php
 <?php
 if (function_exists('get_site_option') && false ===
 get_site_option('can_compress_scripts')) {
     compression_test();
 }
 ?>

 }}}

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


More information about the wp-trac mailing list