Ticket #15941: 15941.tt-id.diff
File 15941.tt-id.diff, 697 bytes (added by , 14 years ago) |
---|
-
wp-admin/includes/export.php
61 61 if ( $args['category'] && 'post' == $args['content'] ) { 62 62 if ( $term = term_exists( $args['category'], 'category' ) ) { 63 63 $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'] ); 65 65 } 66 66 } 67 67