[wp-trac] [WordPress Trac] #10142: Add metadata support for taxonomy terms

WordPress Trac noreply at wordpress.org
Tue Sep 22 04:28:13 UTC 2015


#10142: Add metadata support for taxonomy terms
-----------------------------+-----------------------
 Reporter:  sirzooro         |       Owner:
     Type:  feature request  |      Status:  reopened
 Priority:  normal           |   Milestone:  4.4
Component:  Taxonomy         |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+-----------------------

Comment (by boonebgorges):

 [attachment:10142.2.diff] adds `meta_query` support to `get_terms()` and
 `wp_get_object_terms()`. It also cleans up some documentation.

 In 10142.2.diff, I also added a routine to `pre_schema_upgrade()` that
 ensures that the index length on the `meta_key` field of `wp_termmeta` is
 191. In my journey through the plugin repo, I found a number of plugins
 that created `wp_termmeta`, and almost all of them did it without
 specifying this limit on the index length. This seems like a case where we
 can fairly seamlessly inherit data from those plugins (whose table schemas
 otherwise match our own). @pento, I was hoping you could honor me with
 your esteemed opinion on this idea.

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


More information about the wp-trac mailing list