WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/11/2020 06:30:58 PM (13 months 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/bookmark-template.php

    r45932 r47060  
    203203 *                                      Default 'ASC'.
    204204 * }
    205  * @return string|void Will only return if echo option is set to not echo. Default is not return anything.
     205 * @return void|string Void if 'echo' argument is true, HTML list of bookmarks if 'echo' is false.
    206206 */
    207207function wp_list_bookmarks( $args = '' ) {
     
    317317    $html = apply_filters( 'wp_list_bookmarks', $output );
    318318
    319     if ( ! $parsed_args['echo'] ) {
     319    if ( $parsed_args['echo'] ) {
     320        echo $html;
     321    } else {
    320322        return $html;
    321323    }
    322     echo $html;
    323324}
Note: See TracChangeset for help on using the changeset viewer.