Ticket #11627 (closed defect (bug): fixed)
parts of metadata API fail on user metadata
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.9.1 |
| Component: | General | Version: | 2.9 |
| Severity: | major | Keywords: | has-patch |
| Cc: |
Description
two functions in the new metadata API reference the column named 'meta_id' directly, those are update_metadata and delete_metadata. In the usermeta table however, this column is actually named umeta_id. Using either of these two functions to update or delete user metadata results in a WordPress database error.
I think the best long term solution would be to rename this column to 'meta_id' so that it's consistent. However, I can imagine that would break a few plugins.
Attachments
Change History
Looks good, though I think we should spare the unnecessary function and just do $id_column = 'user' == $meta_type ? 'umeta_id' : 'meta_id';.
yeah, that's fine by me... I don't have strong feelings either way. Additional patch added that doesn't add the additional function.
- Status changed from new to closed
- Resolution set to fixed

