Skip to content

Commit

Permalink
Coding Standards: Simplify a condition in wp-admin/admin-footer.php.
Browse files Browse the repository at this point in the history
Props jamil95, mukesh27.
Fixes #53306.

git-svn-id: https://develop.svn.wordpress.org/trunk@51053 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov authored and SergeyBiryukov committed Jun 1, 2021
1 parent c0be1da commit 7946ff8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wp-admin/admin-footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@
do_action( "admin_footer-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

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

?>
Expand Down

0 comments on commit 7946ff8

Please sign in to comment.