Make WordPress Core


Ignore:
Timestamp:
07/02/2019 11:41:16 PM (5 years 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/author-template.php

    r45580 r45590  
    542542    global $wpdb;
    543543
    544     if ( false === ( $is_multi_author = get_transient( 'is_multi_author' ) ) ) {
     544    $is_multi_author = get_transient( 'is_multi_author' );
     545    if ( false === $is_multi_author ) {
    545546        $rows            = (array) $wpdb->get_col( "SELECT DISTINCT post_author FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' LIMIT 2" );
    546547        $is_multi_author = 1 < count( $rows ) ? 1 : 0;
Note: See TracChangeset for help on using the changeset viewer.