WordPress.org

Make WordPress Core

Ticket #18825: 18825.diff

File 18825.diff, 902 bytes (added by duck_, 7 years ago)
  • wp-includes/meta.php

     
    486486                do_action( "delete_{$meta_type}_meta", (array) $meta_id, $object_id, $meta->meta_key, $meta->meta_value );
    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
    492492                $result = (bool) $wpdb->query( $wpdb->prepare( "DELETE FROM $table WHERE $id_column = %d LIMIT 1;", $meta_id ) );
     
    497497                do_action( "deleted_{$meta_type}_meta", (array) $meta_id, $object_id, $meta->meta_key, $meta->meta_value );
    498498
    499499                if ( 'post' == $meta_type )
    500                         do_action( 'delete_postmeta', $object_id );
     500                        do_action( 'deleted_postmeta', $meta_id );
    501501
    502502                return $result;
    503503