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

WordPress Trac noreply at wordpress.org
Sun Sep 27 08:17:39 UTC 2020


#47896: Docs: add missing argument in the wp_list_categories function docblock
--------------------------+---------------------------
 Reporter:  audrasjb      |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.3
Component:  Taxonomy      |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:  docs
--------------------------+---------------------------

Comment (by SergeyBiryukov):

 In [changeset:"49060" 49060]:
 {{{
 #!CommitTicketReference repository="" revision="49060"
 Taxonomy: Restore documentation for the `taxonomy` parameter of
 `wp_list_categories()`.

 The parameter's default value is different from the one in
 `WP_Term_Query::__construct()`, and should be documented accordingly.

 This also clarifies that the `taxonomy` parameter of
 `wp_list_categories()` only accepts a string, not an array.

 Follow-up to [40903], [41767], [45894], [45895].

 Props grapplerulrich, mukesh27, TimothyBlynJacobs, SergeyBiryukov.
 Fixes #51378. See #47896.
 }}}

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


More information about the wp-trac mailing list