Skip to:

Opened 9 years ago

Closed 8 years ago

#2294 closed defect (bug) (fixed)

[patch] Update *_usermeta references to the new WP 3.0 *_user_meta

Reported by: cnorris23 Owned by: apeatling
Milestone: 1.5 Priority: normal
Severity: Version:
Component: Core Keywords: has-patch needs-testing


WP 3.0 deprecates all *_usermeta functions in favor of the new *_user_meta functions. It's a pretty straight forward change for the update_user_meta and delete_user_meta functions. The new default behavior for the get_user_meta function is to add everything to an array. There is a $single parameter that's been added to the function to allow get_user_meta to behave like get_usermeta, as far as data presentation goes. I've done my best to go through and add 'true' for the $single parameter, so that nothing operates out of the ordinary. However, something may have been missed, so this will need some testing. I'll also do my best to keep up with any changes to trunk that may require this patch to be updated.

Attachments (2)

2294.001.diff (44.1 KB) - added by cnorris23 9 years ago.
first pass
2294.002.diff (43.9 KB) - added by cnorris23 9 years ago.

Download all attachments as: .zip

Change History (7)

9 years ago

first pass

#1 @apeatling
9 years ago

Thanks, this is a valuable patch.

#2 @DJPaul
9 years ago

  • Owner changed from cnorris23 to apeatling
  • Status changed from new to assigned

#3 @cnorris23
9 years ago

Patch refresh.

9 years ago

#4 @paulhastings0
8 years ago

  • Summary changed from Update *_usermeta references to the new WP 3.0 *_user_meta to [patch] Update *_usermeta references to the new WP 3.0 *_user_meta

#5 @djpaul
8 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [3311]) Don't use deprecated delete_usermeta(). Fixes #2294.

Note: See TracTickets for help on using tickets.