[wp-trac] [WordPress Trac] #15049: postavoid add_metadata to insert duplicated entries
WordPress Trac
wp-trac at lists.automattic.com
Wed Oct 6 19:47:45 UTC 2010
#15049: postavoid add_metadata to insert duplicated entries
-------------------------+--------------------------------------------------
Reporter: leogermani | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Database | Version: 3.1
Severity: normal | Keywords: metadata, post_meta, user_meta
-------------------------+--------------------------------------------------
Comment(by Denis-de-Bernardy):
When used as so you're expecting WP to store array values as separate meta
entries. If you store, say, the tag ids a post had across revisions, each
serialized as a meta value, and then add and remove a tag, you'd expect a
dup entry in there.
Whether WP should discard duplicate meta key/value pairs should be left to
plugin authors imo.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15049#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list