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/post-thumbnail-template.php

    r44542 r45590  
    9999    $thumb_ids = array();
    100100    foreach ( $wp_query->posts as $post ) {
    101         if ( $id = get_post_thumbnail_id( $post->ID ) ) {
     101        $id = get_post_thumbnail_id( $post->ID );
     102        if ( $id ) {
    102103            $thumb_ids[] = $id;
    103104        }
Note: See TracChangeset for help on using the changeset viewer.