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/user.php

    r45519 r45590  
    481481    }
    482482
    483     if ( ! $user = get_userdata( $user ) ) {
     483    $user = get_userdata( $user );
     484    if ( ! $user ) {
    484485        return false;
    485486    }
     
    10141015
    10151016    if ( ! $user ) {
    1016         $user_ID    = 0;
    1017         $user_level = 0;
    1018         $userdata   = null;
    1019         $user_login = $user_email = $user_url = $user_identity = '';
     1017        $user_ID       = 0;
     1018        $user_level    = 0;
     1019        $userdata      = null;
     1020        $user_login    = '';
     1021        $user_email    = '';
     1022        $user_url      = '';
     1023        $user_identity = '';
    10201024        return;
    10211025    }
Note: See TracChangeset for help on using the changeset viewer.