mirror of
git://develop.git.wordpress.org/
synced 2025-02-25 17:13:30 +01:00
Fix variable typo. Props schulte. fixes #4374
git-svn-id: https://develop.svn.wordpress.org/trunk@5613 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b4d7d80744
commit
a1bedd8f11
@ -391,7 +391,7 @@ function get_objects_in_term( $terms, $taxonomies, $args = array() ) {
|
||||
$taxonomies = "'" . implode("', '", $taxonomies) . "'";
|
||||
$terms = "'" . implode("', '", $terms) . "'";
|
||||
|
||||
$object_ids = $wpdb->get_col("SELECT tr.object_id FROM $wpdb->term_relationships AS tr INNER JOIN $wpdb->term_taxonomy AS tt ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ($taxonomies) AND tt.term_id IN ($in_terms) ORDER BY tr.object_id $order");
|
||||
$object_ids = $wpdb->get_col("SELECT tr.object_id FROM $wpdb->term_relationships AS tr INNER JOIN $wpdb->term_taxonomy AS tt ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ($taxonomies) AND tt.term_id IN ($terms) ORDER BY tr.object_id $order");
|
||||
|
||||
if ( ! $object_ids )
|
||||
return array();
|
||||
|
Loading…
x
Reference in New Issue
Block a user