Merge pull request #3596 from ninnypants/fix_product_result_count

Fix result count display when posts_per_page is set to -1 @coenjacobs .14
This commit is contained in:
Mike Jolley 2013-08-09 03:00:47 -07:00
commit ea7b12a366
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ if ( ! woocommerce_products_will_display() )
if ( 1 == $total ) { if ( 1 == $total ) {
_e( 'Showing the single result', 'woocommerce' ); _e( 'Showing the single result', 'woocommerce' );
} elseif ( $total <= $per_page ) { } elseif ( $total <= $per_page || -1 == $per_page ) {
printf( __( 'Showing all %d results', 'woocommerce' ), $total ); printf( __( 'Showing all %d results', 'woocommerce' ), $total );
} else { } else {
printf( _x( 'Showing %1$d%2$d of %3$d results', '%1$d = first, %2$d = last, %3$d = total', 'woocommerce' ), $first, $last, $total ); printf( _x( 'Showing %1$d%2$d of %3$d results', '%1$d = first, %2$d = last, %3$d = total', 'woocommerce' ), $first, $last, $total );