[wp-trac] Re: [WordPress Trac] #7540: allow multiple values for key
in usermeta
WordPress Trac
wp-trac at lists.automattic.com
Tue Apr 21 14:20:55 GMT 2009
#7540: allow multiple values for key in usermeta
--------------------------------------------------+-------------------------
Reporter: wnorris | Type: enhancement
Status: new | Priority: normal
Milestone: 2.8 | Component: Users
Version: 2.6.1 | Severity: normal
Keywords: needs-patch 2nd-opinion dev-feedback |
--------------------------------------------------+-------------------------
Comment(by misterbisson):
@Denis-de-Bernardy:
The approach I was taking was to introduce a set of *_user_meta()
functions that behaved identically to the *_post_meta() functions. The
value I see in this, aside from solving the problem in this patch, is to
allow greater reusability between the two similar areas of the code. As
noted above, I can imaging a future patch joining the *_user_meta() and
*_post_meta() functions into one (with a variable that switches them
between post and user contexts).
The make-usermeta-work-like-post_meta.diff, like any that would address
the ticket, has the risk of introducing unexpected behavior, but that risk
is mitigated by the fact that those behaviors are well understood in the
context of post meta. (And paves the way to consolidating/eliminating code
later.)
On the other hand, any patch that leads to a solution would be very
valuable to me.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/7540#comment:24>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list