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

WordPress Trac noreply at wordpress.org
Sun Jan 17 17:56:14 UTC 2016


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

Comment (by swissspidy):

 I guess we can't just use `function get_terms( $args = array() ) {…}` and
 `func_get_args()` to maintain backwards compatibility? Would look more
 clean than `get_terms( null, $args )`.

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


More information about the wp-trac mailing list