WordPress.org

Make WordPress Core

Changeset 17108


Ignore:
Timestamp:
12/22/2010 05:38:22 PM (7 years ago)
Author:
ryan
Message:

Use term_taxonomy_id instead of term_id. Props duck_, nootron. fixes #15941

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/export.php

    r16733 r17108  
    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    }
Note: See TracChangeset for help on using the changeset viewer.