Skip to content

Commit

Permalink
Fix total products count display when there's one single result.
Browse files Browse the repository at this point in the history
Fix from "Showing all 1 results" to "Showing the single result".
  • Loading branch information
Konamiman committed Jul 28, 2020
1 parent c27283d commit ff7884b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/loop/result-count.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<p class="woocommerce-result-count">
<?php
// phpcs:disable WordPress.Security
if ( 1 === $total ) {
if ( 1 === intval( $total ) ) {
_e( 'Showing the single result', 'woocommerce' );
} elseif ( $total <= $per_page || -1 === $per_page ) {
/* translators: %d: total results */
Expand Down

0 comments on commit ff7884b

Please sign in to comment.