[wp-trac] [WordPress Trac] #18270: get_cat_ID() returns term_id rather than term_taxonomy_id

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 27 19:02:15 UTC 2011


#18270: get_cat_ID() returns term_id rather than term_taxonomy_id
-----------------------------+----------------------
 Reporter:  GeorgeStephanis  |       Owner:
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Taxonomy         |     Version:
 Severity:  normal           |  Resolution:  invalid
 Keywords:                   |
-----------------------------+----------------------
Changes (by scribu):

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


Comment:

 All the taxonomy functions work with term_id, rather than
 term_taxonomy_id, even if it would have been nice if it did.

 Unfortunately, we can't go about changing what get_cat_ID() returns,
 because it would break existing code that correctly expects it to return a
 term id.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18270#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list