[wp-trac] [WordPress Trac] #54222: Document that the `get_terms` filter can have null for `$taxonomies`

WordPress Trac noreply at wordpress.org
Wed Nov 10 21:09:46 UTC 2021


#54222: Document that the `get_terms` filter can have null for `$taxonomies`
--------------------------+----------------------------
 Reporter:  dd32          |       Owner:  davidbaumwald
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.9
Component:  Taxonomy      |     Version:
 Severity:  minor         |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:  docs
--------------------------+----------------------------
Changes (by davidbaumwald):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"52131" 52131]:
 {{{
 #!CommitTicketReference repository="" revision="52131"
 Taxonomy: Document that the `get_terms` filter can have `null` for
 `$taxonomies`.

 The `get_terms` filter currently documents that the filter passes an array
 as both the first and second parameters, which is normally true, except
 that the second can be `null` when not specified.  This change updates the
 filter's docblock to indicate that the second parameter can also be of a
 `null` type.

 Props dd32, audrasjb, mukesh27.
 Fixes #54222.
 }}}

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


More information about the wp-trac mailing list