Make WordPress Core

Changeset 12299


Ignore:
Timestamp:
11/30/2009 10:17:28 PM (14 years ago)
Author:
ryan
Message:

Delete custom taxonomy relationships when deleting a post. Props miqrogroove. fixes #10821

File:
1 edited

Legend:

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

    r12298 r12299  
    11871187    delete_post_meta($postid,'_wp_trash_meta_time');
    11881188
    1189     /** @todo delete for pluggable post taxonomies too */
    1190     wp_delete_object_term_relationships($postid, array('category', 'post_tag'));
     1189    wp_delete_object_term_relationships($postid, get_object_taxonomies('post'));
    11911190
    11921191    $parent_data = array( 'post_parent' => $post->post_parent );
Note: See TracChangeset for help on using the changeset viewer.