#51378 closed defect (bug) (fixed)
Taxonomy is missing from wp_list_categories inline documentation
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 5.6 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Taxonomy | Keywords: | has-patch commit |
| Focuses: | docs | Cc: |
Description
The taxonomy parameter is not documented in the inline documentation.
https://developer.wordpress.org/reference/functions/wp_list_categories/
Something like this should be added.
@type string $taxonomy Name of the category to retrieve. Default 'category'.
Change History (9)
This ticket was mentioned in PR #546 on WordPress/wordpress-develop by grappler.
5 years ago
#1
- Keywords has-patch added
#2
@
5 years ago
- Keywords commit added; needs-docs removed
Thanks for the patch. Looks fine for me.
let's move this to commit
#3
@
5 years ago
- Milestone changed from Awaiting Review to 5.6
- Owner set to SergeyBiryukov
- Status changed from assigned to reviewing
TimothyBJacobs commented on PR #546:
5 years ago
#4
Should this be Name of the _taxonomy_?
5 years ago
#5
Thanks! 🤦 That is the problem when one copy and pastes. It is corrected now.
BTW Love this feature. Makes it so much easier for me to contribute.
#7
@
5 years ago
Thanks for the PR! The first part of it is now committed.
Some history on the second part:
- The description of the
taxonomyargument inwp_list_categories()was intentionally removed in [45894], see comment:12:ticket:47896 and comment:8:ticket:41058 for the reasoning. The DocBlock includes a reference toget_categories(),get_terms(), andWP_Term_Query::__construct()for information on additional accepted arguments. - That said, the same was done for
wp_dropdown_categories(). Thetaxonomyparameter was removed in [40903] and then reinstated in [41767], since it's different from the default inWP_Term_Query::__construct(). - With the above in mind, it should probably be reinstated for
wp_list_categories()too.
Note: See
TracTickets for help on using
tickets.
Trac ticket: https://core.trac.wordpress.org/ticket/51378