[wp-trac] [WordPress Trac] #20095: get_users() doesn't allow hyphens in meta_key parameter
WordPress Trac
wp-trac at lists.automattic.com
Wed Feb 22 20:01:27 UTC 2012
#20095: get_users() doesn't allow hyphens in meta_key parameter
---------------------------------------------+-----------------------------
Reporter: mordauk | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
Component: Users | Review
Severity: normal | Version: 3.3.1
Keywords: needs-testing reporter-feedback | Resolution:
---------------------------------------------+-----------------------------
Changes (by mordauk):
* keywords: needs-testing, reporter-feedback => needs-testing reporter-
feedback
Comment:
It's not, it definitely has the hyphen.
Doing get_user_meta($user_id, 'job-seeking', true) works fine (returns the
value).
Doing update_user_meta($user_id, 'job-seeking', 1) also works fine and
saves the data.
I've also just looked through the usermeta table and there are lots of
keys with hyphens, so they're not getting normalized upon creation. At
least as far as I can tell.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20095#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list