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:
parent
766c6a7ef0
commit
f9a0eddbbf
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue