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

WordPress Trac noreply at wordpress.org
Tue Oct 5 07:47:03 UTC 2021


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

Comment (by dd32):

 Replying to [comment:2 audrasjb]:
 > I'm wondering whether this should also be documented in other functions
 (like wp_terms_checklist and many others) or not.

 I'm not sure where that comes into play having taken a quick look at
 those, this is just that one of the additional context parameters on the
 `get_terms` filter is documented wrong, doesn't affect the return value
 (which is already Documented as being literally almost anything
 `WP_Term[]|int[]|string[]|string|WP_Error` :) ).

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


More information about the wp-trac mailing list