Make WordPress Core

Changeset 51053


Ignore:
Timestamp:
06/01/2021 11:29:36 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Simplify a condition in wp-admin/admin-footer.php.

Props jamil95, mukesh27.
Fixes #53306.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/admin-footer.php

    r50541 r51053  
    106106
    107107// get_site_option() won't exist when auto upgrading from <= 2.7.
    108 if ( function_exists( 'get_site_option' ) ) {
    109     if ( false === get_site_option( 'can_compress_scripts' ) ) {
    110         compression_test();
    111     }
     108if ( function_exists( 'get_site_option' )
     109    && false === get_site_option( 'can_compress_scripts' )
     110) {
     111    compression_test();
    112112}
    113113
Note: See TracChangeset for help on using the changeset viewer.