#2867 - Added a check to parent theme for comments_template before loading plugin template

#2867
This commit is contained in:
Scott McCauley 2013-04-03 13:50:39 -04:00
parent d5205b2b18
commit 54c5bda39a
1 changed files with 2 additions and 0 deletions

View File

@ -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';
}