[wp-trac] [WordPress Trac] #34243: Make `get_taxonomy()` work like `get_post_type()`

WordPress Trac noreply at wordpress.org
Sun Oct 11 02:41:37 UTC 2015


#34243: Make `get_taxonomy()` work like `get_post_type()`
--------------------------------------------+----------------------
 Reporter:  flixos90                        |       Owner:
     Type:  enhancement                     |      Status:  closed
 Priority:  normal                          |   Milestone:
Component:  Taxonomy                        |     Version:  trunk
 Severity:  normal                          |  Resolution:  wontfix
 Keywords:  dev-feedback 2nd-opinion close  |     Focuses:
--------------------------------------------+----------------------
Changes (by boonebgorges):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 The real problem here is that `get_post_type()` is a poorly named
 function. It should be `get_post_post_type()` - that is, "get the
 post_type of a post". This better parallels `get_post_field()`. The
 corresponding term function would then be `get_term_taxonomy()`.

 In any case, it seems to me that wrapper fields like this for
 `get_term_field()` are not all that useful. For consistency, we'd want
 functions for all the properties of the term, but do we really want or
 need `get_term_term_group()`? Seems to me that `get_term_field()`,
 especially after #34245, is more than enough.

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


More information about the wp-trac mailing list