Cast found posts to int

Fixes #12608
This commit is contained in:
Mike Jolley 2016-12-15 15:24:35 +00:00
parent dcc47e395f
commit cbc18258e6
1 changed files with 1 additions and 1 deletions

View File

@ -788,7 +788,7 @@ if ( ! function_exists( 'woocommerce_catalog_ordering' ) ) {
function woocommerce_catalog_ordering() {
global $wp_query;
if ( 1 === $wp_query->found_posts || ! woocommerce_products_will_display() ) {
if ( 1 === (int) $wp_query->found_posts || ! woocommerce_products_will_display() ) {
return;
}