Merge pull request #7919 from SiR-DanieL/patch-3

Added missing parenthesis
This commit is contained in:
Claudio Sanches 2015-04-09 12:49:11 -03:00
commit 1253e75e79
1 changed files with 2 additions and 1 deletions

View File

@ -121,8 +121,9 @@ function wc_get_product_ids_on_sale() {
$product_ids_on_sale = get_transient( 'wc_products_onsale' ); $product_ids_on_sale = get_transient( 'wc_products_onsale' );
// Valid cache found // Valid cache found
if ( false !== $product_ids_on_sale ) if ( false !== $product_ids_on_sale ) {
return $product_ids_on_sale; return $product_ids_on_sale;
}
$on_sale_posts = $wpdb->get_results( " $on_sale_posts = $wpdb->get_results( "
SELECT post.ID, post.post_parent FROM `$wpdb->posts` AS post SELECT post.ID, post.post_parent FROM `$wpdb->posts` AS post