Skip to content

Commit d8c4ba3

Browse files
Coding Standards: Simplify a condition in wp-admin/admin-footer.php.
Props jamil95, mukesh27. Fixes #53306. git-svn-id: https://develop.svn.wordpress.org/trunk@51053 602fd350-edb4-49c9-b593-d223f7449a82
1 parent f166ac5 commit d8c4ba3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/wp-admin/admin-footer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@
105105
do_action( "admin_footer-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
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-
}
108+
if ( function_exists( 'get_site_option' )
109+
&& false === get_site_option( 'can_compress_scripts' )
110+
) {
111+
compression_test();
112112
}
113113

114114
?>

0 commit comments

Comments
 (0)