Issue #14900 Make INNER select explit.
This commit is contained in:
parent
02fed84dc0
commit
0a5d9f9a3a
|
@ -639,7 +639,7 @@ function _wc_term_recount( $terms, $taxonomy, $callback = true, $terms_are_term_
|
||||||
$join_index++;
|
$join_index++;
|
||||||
$term_query_join = " INNER JOIN (
|
$term_query_join = " INNER JOIN (
|
||||||
SELECT object_ID FROM {$wpdb->term_relationships}
|
SELECT object_ID FROM {$wpdb->term_relationships}
|
||||||
LEFT JOIN {$wpdb->term_taxonomy} AS tax
|
INNER JOIN {$wpdb->term_taxonomy}
|
||||||
USING( term_taxonomy_id )
|
USING( term_taxonomy_id )
|
||||||
WHERE term_id IN (" . implode( ',', array_map( 'absint', $terms_to_count ) ) . " )
|
WHERE term_id IN (" . implode( ',', array_map( 'absint', $terms_to_count ) ) . " )
|
||||||
) AS include_join{$join_index}
|
) AS include_join{$join_index}
|
||||||
|
|
Loading…
Reference in New Issue