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:
parent
49ffe91b72
commit
5ede137834
|
@ -90,7 +90,9 @@ class WP_Site_Health_Auto_Updates {
|
||||||
* @return array The test results.
|
* @return array The test results.
|
||||||
*/
|
*/
|
||||||
public function test_wp_version_check_attached() {
|
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(
|
return array(
|
||||||
'description' => sprintf(
|
'description' => sprintf(
|
||||||
/* translators: %s: Name of the filter used. */
|
/* translators: %s: Name of the filter used. */
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue