[wp-trac] [WordPress Trac] #20536: Make $taxonomy an optional argument to &get_term()

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 24 19:50:18 UTC 2012


#20536: Make $taxonomy an optional argument to &get_term()
-------------------------+----------------------
 Reporter:  TomAuger     |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Taxonomy     |     Version:
 Severity:  minor        |  Resolution:  wontfix
 Keywords:               |
-------------------------+----------------------

Comment (by TomAuger):

 Well, hold on, this seems to be an even bigger error. Because now we're
 linking potentially two terms to a single term name record, in essence.
 Consider the following scenario:

 For argument's sake, these taxonomies are arbitrary:

 Suppose I have two taxonomies: vertical position and horizontal position.
 For the first taxonomy I set up:
 ('top', 'center', 'bottom')

 And the second taxonomy I set up
 ('left', 'center', 'right')

 According to @duck we now have 5 wp_term records, not 6.

 Then at some point, some admin user says, "no, I want my vertical term to
 be 'middle' instead of 'center'" and changes it.

 Now what happens? Does my second taxonomy's term also change? They are two
 separate entities yet they are being lumped into one DB record. That's
 just not correct. You can't assume that just because two terms share the
 same name, they are identical.

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


More information about the wp-trac mailing list