[wp-trac] [WordPress Trac] #21578: Introducing term_metas
WordPress Trac
wp-trac at lists.automattic.com
Tue Aug 14 19:10:54 UTC 2012
#21578: Introducing term_metas
------------------------------------+------------------------
Reporter: hughwillfayle | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Taxonomy | Version:
Severity: normal | Resolution: duplicate
Keywords: dev-feedback has-patch |
------------------------------------+------------------------
Changes (by nacin):
* status: new => closed
* resolution: => duplicate
* milestone: Awaiting Review =>
Comment:
A "term_id" is not actually unique to a term in the general sense. It is
unique to a single, unique name and slug pair. But it may exist in
multiple taxonomies. That's the point of the term_taxonomy_id. So, "Apple"
may be in the fruit taxonomy and the company taxonomy. But metadata stored
against "Apple" doesn't make sense — you'll want to store it against
"Apple" + fruit or "Apple" + company.
This is why our API passes around term_id + taxonomy to uniquely identify
a term, as together they are synonymous to term_taxonomy_id.
This is a duplicate of #10142. There it is outlined why we have not done
this yet, and what we'll need to do first to be able to do this in the
future.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21578#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list