[wp-trac] [WordPress Trac] #10905: Do not allow duplicate (post_id, meta_key, meta_value) rows in meta tables
WordPress Trac
wp-trac at lists.automattic.com
Thu Aug 30 13:03:22 UTC 2012
#10905: Do not allow duplicate (post_id, meta_key, meta_value) rows in meta tables
--------------------------+----------------------
Reporter: scribu | Owner: ryan
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Database | Version: 2.9
Severity: normal | Resolution: invalid
Keywords: needs-patch |
--------------------------+----------------------
Changes (by scribu):
* status: new => closed
* resolution: => invalid
* milestone: Future Release =>
Comment:
Well, the API already covers this:
1) add_metadata() has a $unique parameter (don't know if it had it 3 years
ago)
2) update_metadata() will never produce duplicates
So, not much else to do here.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10905#comment:25>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list