#2867 - Added a check to parent theme for comments_template before loading plugin template
#2867
This commit is contained in:
parent
d5205b2b18
commit
54c5bda39a
|
@ -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';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue