[wp-trac] [WordPress Trac] #51509: Unique key indices missing

WordPress Trac noreply at wordpress.org
Tue Oct 13 22:22:10 UTC 2020


#51509: Unique key indices missing
--------------------------+----------------------
 Reporter:  dmsfiris      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Database      |     Version:  1.5
 Severity:  normal        |  Resolution:  wontfix
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by peterwilsoncc):

 * status:  new => closed
 * severity:  major => normal
 * component:  General => Database
 * version:  5.5.1 => 1.5
 * milestone:  Awaiting Review =>
 * resolution:   => wontfix


Comment:

 @dmsfiris Hello and welcome to trac!

 As mentioned above, objects (posts, terms, users and comments) can have
 multiple meta data entries using the same key. Each
 `add_{$object_type}_meta` function includes a `$unique` parameter to
 indicate whether the meta key is limited to a single entry, the default
 value is `false`.

 An example use case is the `_wp_old_slug` meta key/value pair in WordPress
 posts. If the slug is changed multiple times, all of the old slugs are
 stored.

 I am closing this ticket as `wontfix`, in this case it's trac's unfriendly
 term to indicate the db structure is by design.

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


More information about the wp-trac mailing list