mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Use term_taxonomy_id instead of term_id. Props duck_, nootron. fixes #15941
git-svn-id: https://develop.svn.wordpress.org/trunk@17108 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
676394918c
commit
ef34db239b
@ -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'] );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user