From bdaba2407ced8db3f3885dc29a59d857257b7a73 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Fri, 29 Apr 2022 19:28:09 +0000 Subject: [PATCH] Docs: Improve documentation of the `walker` argument for various functions. See #54729 Built from https://develop.svn.wordpress.org/trunk@53318 git-svn-id: http://core.svn.wordpress.org/trunk@52907 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 4 ++-- wp-includes/category-template.php | 4 ++++ wp-includes/post-template.php | 6 ++++-- wp-includes/version.php | 2 +- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 392595b555..cb8000297a 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -68,8 +68,8 @@ function wp_category_checklist( $post_id = 0, $descendants_and_self = 0, $select * @type int[] $selected_cats Array of category IDs to mark as checked. Default false. * @type int[] $popular_cats Array of category IDs to receive the "popular-category" class. * Default false. - * @type Walker $walker Walker object to use to build the output. - * Default is a Walker_Category_Checklist instance. + * @type Walker $walker Walker object to use to build the output. Default empty which + * results in a Walker_Category_Checklist instance being used. * @type string $taxonomy Taxonomy to generate the checklist for. Default 'category'. * @type bool $checked_ontop Whether to move checked items out of the hierarchy and to * the top of the list. Default true. diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php index 138491fa77..8c34b0e985 100644 --- a/wp-includes/category-template.php +++ b/wp-includes/category-template.php @@ -331,6 +331,8 @@ function category_description( $category = 0 ) { * Default false (create select element even if no categories are found). * @type bool $required Whether the `