Make WordPress Core


Ignore:
Timestamp:
07/01/2019 12:50:14 PM (5 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-wp-comments-list-table.php

    r44759 r45583  
    820820            $pending_comments = $this->pending_count[ $post->ID ];
    821821        } else {
    822             $_pending_count_temp = get_pending_comments_num( array( $post->ID ) );
    823             $pending_comments    = $this->pending_count[ $post->ID ] = $_pending_count_temp[ $post->ID ];
     822            $_pending_count_temp              = get_pending_comments_num( array( $post->ID ) );
     823            $pending_comments                 = $_pending_count_temp[ $post->ID ];
     824            $this->pending_count[ $post->ID ] = $pending_comments;
    824825        }
    825826
     
    832833
    833834        echo '<div class="response-links">';
    834         if ( 'attachment' === $post->post_type && ( $thumb = wp_get_attachment_image( $post->ID, array( 80, 60 ), true ) ) ) {
    835             echo $thumb;
     835        if ( 'attachment' === $post->post_type ) {
     836            $thumb = wp_get_attachment_image( $post->ID, array( 80, 60 ), true );
     837            if ( $thumb ) {
     838                echo $thumb;
     839            }
    836840        }
    837841        echo $post_link;
Note: See TracChangeset for help on using the changeset viewer.