Make WordPress Core

Changeset 62091


Ignore:
Timestamp:
03/23/2026 08:56:30 AM (11 days ago)
Author:
SergeyBiryukov
Message:

Code Quality: Remove redundant variable assignment in wp_list_authors().

There is no need to initialize $post_counts as an empty array, since it will be overwritten directly by the filter value in the next line.

Follow-up to [54262].

Props Soean.
See #64238.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/author-template.php

    r61790 r62091  
    490490    $query_args = apply_filters( 'wp_list_authors_args', $query_args, $parsed_args );
    491491
    492     $authors     = get_users( $query_args );
    493     $post_counts = array();
     492    $authors = get_users( $query_args );
    494493
    495494    /**
Note: See TracChangeset for help on using the changeset viewer.