From 84be1644cd95d99d15f454f5803ad365eba499e6 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Fri, 29 Apr 2022 19:27:00 +0000 Subject: [PATCH] Docs: Improve documentation of the `walker` argument for various functions. See #54729 git-svn-id: https://develop.svn.wordpress.org/trunk@53318 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/template.php | 4 ++-- src/wp-includes/category-template.php | 4 ++++ src/wp-includes/post-template.php | 6 ++++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php index 392595b555..cb8000297a 100644 --- a/src/wp-admin/includes/template.php +++ b/src/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/src/wp-includes/category-template.php b/src/wp-includes/category-template.php index 138491fa77..8c34b0e985 100644 --- a/src/wp-includes/category-template.php +++ b/src/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 `