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/class-wp-comment-query.php

    r44573 r45590  
    430430        $_comments = array();
    431431        foreach ( $comment_ids as $comment_id ) {
    432             if ( $_comment = get_comment( $comment_id ) ) {
     432            $_comment = get_comment( $comment_id );
     433            if ( $_comment ) {
    433434                $_comments[] = $_comment;
    434435            }
     
    951952        do {
    952953            // Parent-child relationships may be cached. Only query for those that are not.
    953             $child_ids   = $uncached_parent_ids = array();
    954             $_parent_ids = $levels[ $level ];
     954            $child_ids           = array();
     955            $uncached_parent_ids = array();
     956            $_parent_ids         = $levels[ $level ];
    955957            foreach ( $_parent_ids as $parent_id ) {
    956958                $cache_key        = "get_comment_child_ids:$parent_id:$key:$last_changed";
     
    10101012        // If a threaded representation was requested, build the tree.
    10111013        if ( 'threaded' === $this->query_vars['hierarchical'] ) {
    1012             $threaded_comments = $ref = array();
     1014            $threaded_comments = array();
     1015            $ref               = array();
    10131016            foreach ( $all_comments as $k => $c ) {
    10141017                $_c = get_comment( $c->comment_ID );
Note: See TracChangeset for help on using the changeset viewer.