[wp-trac] [WordPress Trac] #37686: Add object_type column to term_relationships table

WordPress Trac noreply at wordpress.org
Wed Aug 17 11:32:14 UTC 2016


#37686: Add object_type column to term_relationships table
-----------------------------+------------------------------
 Reporter:  johnjamesjacoby  |       Owner:
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Taxonomy         |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  2nd-opinion      |     Focuses:
-----------------------------+------------------------------

Comment (by pento):

 I am ambivalent towards this change.

 On the one hand, there are many potential use cases for allowing
 taxonomies against all objects.

 On the other hand, this has significant backwards compatibility issues,
 particularly for any code that does custom queries against
 `wp_term_relationships` - suddenly, an `object_id` doesn't necessarily
 correlate with a `post_id`.

 > ...`site`, or `network` could make for interesting taxonomy term
 relationships.

 Thank you for volunteering to maintain global terms! ;-)

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


More information about the wp-trac mailing list