[wp-trac] [WordPress Trac] #18825: Back compat issues in delete(d)_postmeta actions

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 30 14:35:13 UTC 2011


#18825: Back compat issues in delete(d)_postmeta actions
--------------------------+-----------------------
 Reporter:  duck_         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  3.3
Component:  General       |    Version:  3.3
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------
 I was looking at #18823 and noticed some backwards compatibility issues
 with the delete(d)_postmeta actions in 3.3.

 See [18500] and #18196 for what looks like accidental backwards
 incompatibility.

 * The deleted_postmeta action disappeared (see delete_metadata_by_mid);
 this was probably a copy and paste error.
 * delete_meta( $mid ) will now run the delete_postmeta action with the
 post ID ($object_id) instead of the $mid.

 Patch attached fixes these up to be backwards compatible with
 s/$object_id/$meta_id/ and adding the missing 'd'.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18825>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list