WordPress.org

Make WordPress Core

Changeset 50050


Ignore:
Timestamp:
01/28/2021 10:36:45 AM (10 months ago)
Author:
SergeyBiryukov
Message:

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.

Location:
branches/5.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.6

  • branches/5.6/src/wp-admin/includes/class-wp-site-health-auto-updates.php

    r50036 r50050  
    9191     */
    9292    public function test_wp_version_check_attached() {
    93         if ( ( ! is_multisite() || ( is_main_site() && is_network_admin() ) ) && ! has_filter( 'wp_version_check', 'wp_version_check' ) ) {
     93        if ( ( ! is_multisite() || is_main_site() && is_network_admin() )
     94            && ! has_filter( 'wp_version_check', 'wp_version_check' )
     95        ) {
    9496            return array(
    9597                'description' => sprintf(
Note: See TracChangeset for help on using the changeset viewer.