[wp-trac] [WordPress Trac] #35495: Allow `get_terms()` to return all terms, make `$taxonomy` parameter optional

WordPress Trac noreply at wordpress.org
Mon Feb 22 20:14:53 UTC 2016


#35495: Allow `get_terms()` to return all terms, make `$taxonomy` parameter
optional
--------------------------------------+--------------------
 Reporter:  flixos90                  |       Owner:
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  4.5
Component:  Taxonomy                  |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+--------------------

Comment (by DrewAPicture):

 Talked with @boonebgorges a bit about approach and I think this is
 realistically the best we're going to get in terms of documentation. It's
 definitely parameter gymnastics.

 Initially I was thinking adding the `$deprecated` parameter might be
 overkill but I think we need to do it in case we ever decide to add a
 third parameter (yay future-proofing). In fact, I would even suggest
 adding an `@internal` comment explaining the presence of the second "dead"
 parameter.

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


More information about the wp-trac mailing list