Make WordPress Core


Ignore:
Timestamp:
01/11/2020 06:30:58 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: In various @return tags, list the expected type first, instead of false.

Follow-up to [46696].

See #48303.

File:
1 edited

Legend:

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

    r46290 r47060  
    408408 *     @type array|string $include       Array or comma/space-separated list of author IDs to include. Default empty.
    409409 * }
    410  * @return string|void The output, if echo is set to false.
     410 * @return void|string Void if 'echo' argument is true, list of authors if 'echo' is false.
    411411 */
    412412function wp_list_authors( $args = '' ) {
     
    519519    $return = rtrim( $return, ', ' );
    520520
    521     if ( ! $args['echo'] ) {
     521    if ( $args['echo'] ) {
     522        echo $return;
     523    } else {
    522524        return $return;
    523525    }
    524     echo $return;
    525526}
    526527
Note: See TracChangeset for help on using the changeset viewer.