Skip to content

Commit

Permalink
Merge pull request #148 from MyThemeShopTeam/v5.2.9
Browse files Browse the repository at this point in the history
v5.2.9
  • Loading branch information
truong-mts authored Dec 14, 2019
2 parents fb38f56 + a22a6ef commit dcd753d
Show file tree
Hide file tree
Showing 5 changed files with 715 additions and 691 deletions.
22 changes: 21 additions & 1 deletion comments/comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,27 @@
<!-- You can start editing here. -->
<?php if ( have_comments() ) : ?>
<div id="comments">
<h4 class="total-comments"><?php comments_number( __( 'No Responses', 'wp-review' ), __( 'One Response', 'wp-review' ), __( '% Comments', 'wp-review' ) ); ?></h4>
<h4 class="total-comments">
<?php
$comments_number = intval( get_comments_number() );
if ( 1 === $comments_number ) {
esc_html_e( 'One Response', 'wp-review' );
} else {
printf(
/* translators: number of comments */
_nx(
'%1$s Comment',
'%1$s Comments',
$comments_number,
'comments title',
'wp-review'
),
number_format_i18n( $comments_number )
);
}
?>
</h4>

<ol class="commentlist">
<?php
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) { // Are there comments to navigate through.
Expand Down
2 changes: 1 addition & 1 deletion includes/widgets/class-wp-review-tab-widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ public function update( $new_instance, $old_instance ) {
$instance = $old_instance;
$instance['tabs'] = $new_instance['tabs'];
$instance['tab_order'] = $new_instance['tab_order'];
$instance['tab_titles'] = wp_kses_post( $new_instance['tab_titles'] );
$instance['tab_titles'] = $new_instance['tab_titles'];
$instance['review_type'] = isset( $new_instance['review_type'] ) ? $new_instance['review_type'] : '';
$instance['allow_pagination'] = $new_instance['allow_pagination'];
$instance['post_num'] = $new_instance['post_num'];
Expand Down
Loading

0 comments on commit dcd753d

Please sign in to comment.