WordPress.org

Make WordPress Core

Ticket #14306: export.patch

File export.patch, 669 bytes (added by ajferg, 10 years ago)
  • export.php

     
    255255
    256256                $the_list = '';
    257257                $filter = 'rss';
    258 
    259                 $taxonomies = get_object_taxonomies( 'post' );
    260                 $terms = wp_get_post_terms( $post->ID, $taxonomies );
     258               
     259                $taxonomies = get_object_taxonomies( $post->post_type );
     260                $terms = wp_get_object_terms($post->ID, $taxonomies);
     261               
    261262                foreach ( (array) $terms as $term ) {
    262263                        $domain = ( 'post_tag' == $term->taxonomy ) ? 'tag' : $term->taxonomy;
    263264                        $term_name = sanitize_term_field( 'name', $term->name, $term->term_id, $term->taxonomy, $filter );