[wp-trac] [WordPress Trac] #11125: added_{$meta_type}_meta, and update_{$meta_type}_meta actions have inconsistent arguments
WordPress Trac
wp-trac at lists.automattic.com
Thu Nov 12 06:19:04 UTC 2009
#11125: added_{$meta_type}_meta, and update_{$meta_type}_meta actions have
inconsistent arguments
--------------------------+-------------------------------------------------
Reporter: mdawaffe | Owner: mdawaffe
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 2.9
Component: General | Version:
Severity: major | Keywords: has-patch dev-feedback
--------------------------+-------------------------------------------------
Changes (by mdawaffe):
* severity: normal => major
Comment:
Replying to [comment:1 mdawaffe]:
> I suggest all the metadata hooks use that order (object_id, key, value,
meta_id).
That suggestion is a bad one.
The actions need to have arguments in the following order instead.
meta_id(s), object_id, key, value
I didn't realize that in addition to the
(added|updated|update|deleted)_{$meta_type}_meta actions, there were
already pre-existing (added|updated|update|deleted)_(post|user)_meta
actions. These pre-existing actions all use the above argument order.
New patch puts them in the correct order.
Bumping severity since it's now a real bug, not just a new inconsistency.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11125#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list