[wp-trac] [WordPress Trac] #47896: Docs: add missing argument in the wp_list_categories function docblock

WordPress Trac noreply at wordpress.org
Wed Aug 21 15:59:34 UTC 2019


#47896: Docs: add missing argument in the wp_list_categories function docblock
-----------------------------------+------------------------------
 Reporter:  audrasjb               |       Owner:  (none)
     Type:  defect (bug)           |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Taxonomy               |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:  docs
-----------------------------------+------------------------------

Comment (by itowhid06):

 I might be wrong, but from my point of view `wp_list_categories` uses
 `get_categories` which uses `get_terms`; and `get_terms` supports
 `include` as a argument. So basically even if `include` is not part of the
 codebase of `wp_list_categories`, it completely supports it. So my opinion
 is to make `include` as part of `wp_list_categories`.  May I suggest
 `47896.2.diff`?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47896#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list