From 54c5bda39a90932e9993e464472b492ed1b0bbd2 Mon Sep 17 00:00:00 2001 From: Scott McCauley Date: Wed, 3 Apr 2013 13:50:39 -0400 Subject: [PATCH] #2867 - Added a check to parent theme for comments_template before loading plugin template #2867 --- woocommerce.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/woocommerce.php b/woocommerce.php index 0a7c5c0d84a..323b0a953a8 100644 --- a/woocommerce.php +++ b/woocommerce.php @@ -626,6 +626,8 @@ class Woocommerce { if ( file_exists( STYLESHEETPATH . '/' . $this->template_url . 'single-product-reviews.php' )) return STYLESHEETPATH . '/' . $this->template_url . 'single-product-reviews.php'; + elseif ( file_exists( TEMPLATEPATH . '/' . $this->template_url . 'single-product-reviews.php' )) + return TEMPLATEPATH . '/' . $this->template_url . 'single-product-reviews.php'; else return $this->plugin_path() . '/templates/single-product-reviews.php'; }