Skip to content

Commit

Permalink
include_template_functions at all times
Browse files Browse the repository at this point in the history
Fixes woocommerce#7581

Adds little to no overhead.
  • Loading branch information
mikejolley committed Mar 2, 2015
1 parent 0973dec commit 2335b41
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,7 @@ public function frontend_includes() {
* Function used to Init WooCommerce Template Functions - This makes them pluggable by plugins and themes.
*/
public function include_template_functions() {
if ( $this->is_request( 'frontend' ) ) {
include_once( 'includes/wc-template-functions.php' );
}
include_once( 'includes/wc-template-functions.php' );
}

/**
Expand Down

0 comments on commit 2335b41

Please sign in to comment.