found_posts always contains total queried posts. Closes #2136

So no need to check for post_count or is_paged() function.
This commit is contained in:
Coen Jacobs 2013-01-10 12:06:55 +01:00
parent 766c6a7ef0
commit f9a0eddbbf
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
global $woocommerce, $wp_query;
if ( ! woocommerce_products_will_display() || ( $wp_query->post_count == 1 && ! is_paged() ) )
if ( ! woocommerce_products_will_display() || 1 == $wp_query->found_posts )
return;
?>
<form class="woocommerce-ordering" method="post">