Make WordPress Core


Ignore:
Timestamp:
07/01/2019 12:50:14 PM (3 years ago)
Author:
pento
Message:

Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-admin.

See #47632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-core-upgrader.php

    r45262 r45583  
    285285            if ( false === WP_AUTO_UPDATE_CORE ) {
    286286                // Defaults to turned off, unless a filter allows it
    287                 $upgrade_dev = $upgrade_minor = $upgrade_major = false;
     287                $upgrade_dev   = false;
     288                $upgrade_minor = false;
     289                $upgrade_major = false;
    288290            } elseif ( true === WP_AUTO_UPDATE_CORE ) {
    289291                // ALL updates for core
    290                 $upgrade_dev = $upgrade_minor = $upgrade_major = true;
     292                $upgrade_dev   = true;
     293                $upgrade_minor = true;
     294                $upgrade_major = true;
    291295            } elseif ( 'minor' === WP_AUTO_UPDATE_CORE ) {
    292296                // Only minor updates for core
    293                 $upgrade_dev   = $upgrade_major = false;
     297                $upgrade_dev   = false;
    294298                $upgrade_minor = true;
     299                $upgrade_major = false;
    295300            }
    296301        }
Note: See TracChangeset for help on using the changeset viewer.