WordPress.org

Make WordPress Core

Ticket #10821: ticket-10821.patch

File ticket-10821.patch, 652 bytes (added by miqrogroove, 6 years ago)
  • wp-includes/post.php

     
    11861186        delete_post_meta($postid,'_wp_trash_meta_status'); 
    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 ); 
    11931192        $parent_where = array( 'post_parent' => $postid );