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:
commit
9e4754d1f6
|
@ -626,6 +626,8 @@ class Woocommerce {
|
||||||
|
|
||||||
if ( file_exists( STYLESHEETPATH . '/' . $this->template_url . 'single-product-reviews.php' ))
|
if ( file_exists( STYLESHEETPATH . '/' . $this->template_url . 'single-product-reviews.php' ))
|
||||||
return 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
|
else
|
||||||
return $this->plugin_path() . '/templates/single-product-reviews.php';
|
return $this->plugin_path() . '/templates/single-product-reviews.php';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue