Replace "{$wp->prefix}posts" with "{$wp->posts}"

This commit is contained in:
Nestor Soriano 2021-11-17 09:35:20 +01:00 committed by barryhughes
parent caf1481767
commit 3a40691c6b
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ class Filterer {
// The extra derived table ("SELECT product_or_parent_id FROM") is needed for performance
// (causes the filtering subquery to be executed only once).
$clause_root = " {$wpdb->prefix}posts.ID IN ( SELECT product_or_parent_id FROM (";
$clause_root = " {$wpdb->posts}.ID IN ( SELECT product_or_parent_id FROM (";
if ( 'yes' === get_option( 'woocommerce_hide_out_of_stock_items' ) ) {
$in_stock_clause = ' AND in_stock = 1';
} else {