Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

#2867 - Added a check to parent theme for comments_template before loadi... #2868

Merged
merged 1 commit into from

2 participants

@ascottmccauley

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

Fix for #2867

@mikejolley mikejolley merged commit 9e4754d into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 3, 2013
  1. @ascottmccauley
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +2 −0  woocommerce.php
View
2  woocommerce.php
@@ -626,6 +626,8 @@ public function comments_template_loader( $template ) {
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';
}
Something went wrong with that request. Please try again.