Merge pull request #2868 from ascottmccauley/2867-fix

#2867 - Added a check to parent theme for comments_template before loadi...
This commit is contained in:
Mike Jolley 2013-04-03 12:08:56 -07:00
commit 9e4754d1f6
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';
}