| @@ -16,22 +16,22 @@ | ||
| 16 | 16 | ?> |
| 17 | 17 | <p class="propertyhive-result-count"> |
| 18 | 18 | <?php |
| 19 | 19 | if ( 1 == $total ) { |
| 20 | - _e( 'Showing the single result', 'propertyhive' ); | |
| 20 | + esc_html_e( 'Showing the single result', 'propertyhive' ); | |
| 21 | 21 | } elseif ( $total <= $per_page || -1 == $per_page ) { |
| 22 | 22 | printf( |
| 23 | 23 | /* translators: %s: total number of properties */ |
| 24 | - __( 'Showing %s properties', 'propertyhive' ), | |
| 25 | - number_format_i18n($total) | |
| 24 | + esc_html__( 'Showing %s properties', 'propertyhive' ), | |
| 25 | + esc_html( number_format_i18n( $total ) ) | |
| 26 | 26 | ); |
| 27 | 27 | } else { |
| 28 | 28 | printf( |
| 29 | 29 | /* translators: 1: first result number, 2: last result number, 3: total number of properties */ |
| 30 | - __( 'Showing %1$s–%2$s of %3$s properties', 'propertyhive' ), | |
| 31 | - number_format_i18n($first), | |
| 32 | - number_format_i18n($last), | |
| 33 | - number_format_i18n($total) | |
| 30 | + esc_html__( 'Showing %1$s–%2$s of %3$s properties', 'propertyhive' ), | |
| 31 | + esc_html( number_format_i18n( $first ) ), | |
| 32 | + esc_html( number_format_i18n( $last ) ), | |
| 33 | + esc_html( number_format_i18n( $total ) ) | |
| 34 | 34 | ); |
| 35 | 35 | } |
| 36 | 36 | ?> |
| 37 | 37 | </p> |