WordPress.org

Make WordPress Core

Changeset 18835


Ignore:
Timestamp:
09/30/11 15:19:32 (3 years ago)
Author:
duck_
Message:

Fix back compat issues with delete_postmeta and deleted_postmeta actions as these should be passed the meta ID. Fixes #18825.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/meta.php

    r18825 r18835  
    487487 
    488488        if ( 'post' == $meta_type ) 
    489             do_action( 'delete_postmeta', $object_id ); 
     489            do_action( 'delete_postmeta', $meta_id ); 
    490490 
    491491        // Run the query, will return true if deleted, false otherwise 
     
    498498 
    499499        if ( 'post' == $meta_type ) 
    500             do_action( 'delete_postmeta', $object_id ); 
     500            do_action( 'deleted_postmeta', $meta_id ); 
    501501 
    502502        return $result; 
Note: See TracChangeset for help on using the changeset viewer.