From 8133a247bd90659dbf1d7ae20ee77016e22512b5 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 22 Jan 2020 00:20:21 +0000 Subject: [PATCH] Docs: Adjust `@return` value of `parent_dropdown()` for consistency with other dropdown functions. See #48303. git-svn-id: https://develop.svn.wordpress.org/trunk@47100 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/template.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php index 116d8dd464..22f6c2f6f8 100644 --- a/src/wp-admin/includes/template.php +++ b/src/wp-admin/includes/template.php @@ -887,7 +887,8 @@ function page_template_dropdown( $default = '', $post_type = 'page' ) { * @param int $level Optional. Page depth level. Default 0. * @param int|WP_Post $post Post ID or WP_Post object. * - * @return null|false Boolean False if page has no children, otherwise print out html elements. + * @return void|false HTML dropdown list of page parents on success, + * false if the page has no children. */ function parent_dropdown( $default = 0, $parent = 0, $level = 0, $post = null ) { global $wpdb;