Make WordPress Core

Ticket #15941: 15941.tt-id.diff

File 15941.tt-id.diff, 697 bytes (added by duck_, 14 years ago)
  • wp-admin/includes/export.php

     
    6161        if ( $args['category'] && 'post' == $args['content'] ) {
    6262                if ( $term = term_exists( $args['category'], 'category' ) ) {
    6363                        $join = "INNER JOIN {$wpdb->term_relationships} ON ({$wpdb->posts}.ID = {$wpdb->term_relationships}.object_id)";
    64                         $where .= $wpdb->prepare( " AND {$wpdb->term_relationships}.term_taxonomy_id = %d", $term['term_id'] );
     64                        $where .= $wpdb->prepare( " AND {$wpdb->term_relationships}.term_taxonomy_id = %d", $term['term_taxonomy_id'] );
    6565                }
    6666        }
    6767