[wp-trac] [WordPress Trac] #34245: Make the $taxonomy parameter in get_term_field() optional

WordPress Trac noreply at wordpress.org
Sat Oct 10 15:43:53 UTC 2015


#34245: Make the $taxonomy parameter in get_term_field() optional
--------------------------------------+------------------
 Reporter:  DrewAPicture              |       Owner:
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  4.4
Component:  Taxonomy                  |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------

Comment (by DrewAPicture):

 [attachment:34245.2.diff] also makes `$term` accept both a term ID and
 `WP_Term` object, and adds tests. (I really dig being able to use
 `get_term_field()` in "shorthand" without having to supply a taxonomy,
 btw).

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


More information about the wp-trac mailing list