From 0a5d9f9a3aac55b65e0dd4d9a27f2f420530f9dd Mon Sep 17 00:00:00 2001 From: Jason Judge Date: Mon, 8 May 2017 17:25:31 +0100 Subject: [PATCH] Issue #14900 Make INNER select explit. --- includes/wc-term-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/wc-term-functions.php b/includes/wc-term-functions.php index c7071d418bc..fe37af23bc9 100644 --- a/includes/wc-term-functions.php +++ b/includes/wc-term-functions.php @@ -639,7 +639,7 @@ function _wc_term_recount( $terms, $taxonomy, $callback = true, $terms_are_term_ $join_index++; $term_query_join = " INNER JOIN ( SELECT object_ID FROM {$wpdb->term_relationships} - LEFT JOIN {$wpdb->term_taxonomy} AS tax + INNER JOIN {$wpdb->term_taxonomy} USING( term_taxonomy_id ) WHERE term_id IN (" . implode( ',', array_map( 'absint', $terms_to_count ) ) . " ) ) AS include_join{$join_index}