From 0d70b3b34eeaa29f0d71e0e5ec92d28dc78189d7 Mon Sep 17 00:00:00 2001 From: Ernest Date: Fri, 13 Apr 2018 14:20:46 +0300 Subject: [PATCH] Recent Product Reviews template --- .../class-wc-widget-recent-reviews.php | 26 ++++---------- templates/content-widget-reviews.php | 36 +++++++++++++++++++ 2 files changed, 43 insertions(+), 19 deletions(-) create mode 100644 templates/content-widget-reviews.php diff --git a/includes/widgets/class-wc-widget-recent-reviews.php b/includes/widgets/class-wc-widget-recent-reviews.php index da6fef7fd4d..c609610db3c 100644 --- a/includes/widgets/class-wc-widget-recent-reviews.php +++ b/includes/widgets/class-wc-widget-recent-reviews.php @@ -70,31 +70,19 @@ class WC_Widget_Recent_Reviews extends WC_Widget { if ( $comments ) { $this->widget_start( $args, $instance ); - echo '' ) ); $this->widget_end( $args ); + } $content = ob_get_clean(); diff --git a/templates/content-widget-reviews.php b/templates/content-widget-reviews.php new file mode 100644 index 00000000000..735884ddb5b --- /dev/null +++ b/templates/content-widget-reviews.php @@ -0,0 +1,36 @@ + +
  • + + + + get_image(); ?> + get_name(); ?> + + + comment_ID, 'rating', true ) ) );?> + + comment_ID ) ); ?> + + +