[wp-trac] [WordPress Trac] #15049: postavoid add_metadata to insert duplicated entries
WordPress Trac
wp-trac at lists.automattic.com
Wed Oct 6 20:14:59 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):
Replying to [comment:2 leogermani]:
My intent was merely to highlight that there can be a use for arrays that
hold the same value multiple times. I've never used it myself but there
might be someone out there who does if it works as expected.
If storing identical key/value pairs currently works as expected, I'd
recommend wontfix. (It can't be that hard to call in_array() before adding
a meta.) If it doesn't, might as well do make WP do the check indeed.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15049#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list