Coding Standards: Simplify a long condition in WP_Site_Health_Auto_Updates::test_wp_version_check_attached() for better readability.

Follow-up to [50035].

See #52135.
Built from https://develop.svn.wordpress.org/trunk@50049


git-svn-id: http://core.svn.wordpress.org/trunk@49750 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2021-01-28 10:35:59 +00:00
parent 43e36a3541
commit 38b205e5dc
3 changed files with 21 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

@ -0,0 +1,17 @@
{
"apiVersion": 2,
"name": "core/freeform",
"category": "text",
"attributes": {
"content": {
"type": "string",
"source": "html"
}
},
"supports": {
"className": false,
"customClassName": false,
"reusable": false
},
"editorStyle": "wp-block-freeform-editor"
}

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.7-alpha-50048';
$wp_version = '5.7-alpha-50049';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.