From 44c185e0cf1a9b20243b89eaf0c8768f6d389eb1 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 1 Jun 2021 11:30:57 +0000 Subject: [PATCH] Coding Standards: Simplify a condition in `wp-admin/admin-footer.php`. Props jamil95, mukesh27. Fixes #53306. Built from https://develop.svn.wordpress.org/trunk@51053 git-svn-id: http://core.svn.wordpress.org/trunk@50662 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-footer.php | 8 ++++---- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-admin/admin-footer.php b/wp-admin/admin-footer.php index 0bacf34026..9e683d0b11 100644 --- a/wp-admin/admin-footer.php +++ b/wp-admin/admin-footer.php @@ -105,10 +105,10 @@ do_action( 'admin_print_footer_scripts' ); 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(); } ?> diff --git a/wp-includes/version.php b/wp-includes/version.php index d14a53be06..609aaf310a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-51052'; +$wp_version = '5.8-alpha-51053'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.