WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/02/2019 11:41:16 PM (17 months ago)
Author:
pento
Message:

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

See #47632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-load.php

    r45162 r45590  
    325325         * the network first, because we need the network's path to identify any sites.
    326326         */
    327         if ( ! $current_site = wp_cache_get( 'current_network', 'site-options' ) ) {
     327        $current_site = wp_cache_get( 'current_network', 'site-options' );
     328        if ( ! $current_site ) {
    328329            // Are there even two networks installed?
    329330            $networks = get_networks( array( 'number' => 2 ) );
     
    389390    if ( empty( $current_blog ) && wp_installing() ) {
    390391        $current_blog          = new stdClass;
    391         $current_blog->blog_id = $blog_id = 1;
     392        $current_blog->blog_id = 1;
     393        $blog_id               = 1;
    392394        $current_blog->public  = 1;
    393395    }
Note: See TracChangeset for help on using the changeset viewer.