From 5ede1378347cef4616bf65208053bb6005f83e5c Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 28 Jan 2021 10:38:00 +0000 Subject: [PATCH] Coding Standards: Simplify a long condition in `WP_Site_Health_Auto_Updates::test_wp_version_check_attached()` for better readability. Follow-up to [50035]. Merges [50049] to the 5.6 branch. See #52135. Built from https://develop.svn.wordpress.org/branches/5.6@50050 git-svn-id: http://core.svn.wordpress.org/branches/5.6@49751 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-site-health-auto-updates.php | 4 +++- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-site-health-auto-updates.php b/wp-admin/includes/class-wp-site-health-auto-updates.php index e965aa3849..08b024a559 100644 --- a/wp-admin/includes/class-wp-site-health-auto-updates.php +++ b/wp-admin/includes/class-wp-site-health-auto-updates.php @@ -90,7 +90,9 @@ class WP_Site_Health_Auto_Updates { * @return array The test results. */ public function test_wp_version_check_attached() { - if ( ( ! is_multisite() || ( is_main_site() && is_network_admin() ) ) && ! has_filter( 'wp_version_check', 'wp_version_check' ) ) { + if ( ( ! is_multisite() || is_main_site() && is_network_admin() ) + && ! has_filter( 'wp_version_check', 'wp_version_check' ) + ) { return array( 'description' => sprintf( /* translators: %s: Name of the filter used. */ diff --git a/wp-includes/version.php b/wp-includes/version.php index 818ddee9ec..8d9c66546e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6.1-alpha-50047'; +$wp_version = '5.6.1-alpha-50050'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.