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
This commit is contained in:
Sergey Biryukov 2021-01-28 10:38:00 +00:00
parent 49ffe91b72
commit 5ede137834
2 changed files with 4 additions and 2 deletions

View File

@ -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. */

View File

@ -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.