From 1fe263e46c7a037873dfbca7e88f500dfa75399f Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 22 Dec 2010 17:38:22 +0000 Subject: [PATCH] Use term_taxonomy_id instead of term_id. Props duck_, nootron. fixes #15941 git-svn-id: http://svn.automattic.com/wordpress/trunk@17108 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/export.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/export.php b/wp-admin/includes/export.php index 057ddf558f..baa133f299 100644 --- a/wp-admin/includes/export.php +++ b/wp-admin/includes/export.php @@ -61,7 +61,7 @@ function export_wp( $args = array() ) { if ( $args['category'] && 'post' == $args['content'] ) { if ( $term = term_exists( $args['category'], 'category' ) ) { $join = "INNER JOIN {$wpdb->term_relationships} ON ({$wpdb->posts}.ID = {$wpdb->term_relationships}.object_id)"; - $where .= $wpdb->prepare( " AND {$wpdb->term_relationships}.term_taxonomy_id = %d", $term['term_id'] ); + $where .= $wpdb->prepare( " AND {$wpdb->term_relationships}.term_taxonomy_id = %d", $term['term_taxonomy_id'] ); } }