Docs: In various @return tags, list the expected type first, instead of false.
Follow-up to [46696]. See #48303. Built from https://develop.svn.wordpress.org/trunk@47060 git-svn-id: http://core.svn.wordpress.org/trunk@46860 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -202,7 +202,7 @@ function _walk_bookmarks( $bookmarks, $args = '' ) {
|
||||
* $categorize is true. Accepts 'ASC' (ascending) or 'DESC' (descending).
|
||||
* Default 'ASC'.
|
||||
* }
|
||||
* @return string|void Will only return if echo option is set to not echo. Default is not return anything.
|
||||
* @return void|string Void if 'echo' argument is true, HTML list of bookmarks if 'echo' is false.
|
||||
*/
|
||||
function wp_list_bookmarks( $args = '' ) {
|
||||
$defaults = array(
|
||||
@@ -316,8 +316,9 @@ function wp_list_bookmarks( $args = '' ) {
|
||||
*/
|
||||
$html = apply_filters( 'wp_list_bookmarks', $output );
|
||||
|
||||
if ( ! $parsed_args['echo'] ) {
|
||||
if ( $parsed_args['echo'] ) {
|
||||
echo $html;
|
||||
} else {
|
||||
return $html;
|
||||
}
|
||||
echo $html;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user