Skip to content

Commit

Permalink
warning/log fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mtx-z committed Jun 1, 2018
1 parent 3a780e4 commit 300e838
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions your-sage-theme/app/filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@
/**
* Render page using Blade
* 19.25.18: tested and required for Woocommerce 3.3.5 integration with sage 9.0.1
*
* Changed: locate blade or php template file and render it
* Triggers just before woocommerce actually render PHP template, but return blade and null, or php template like woocommerce would do
* wp-content/plugins/woocommerce/includes/wc-core-functions.php:l158
*/
add_filter( 'wc_get_template_part', function ( $template, $slug, $name, $args ) {
add_filter( 'wc_get_template_part', function ( $template, $slug, $name, $args = [] ) {
$bladeTemplate = false;
// Look in yourtheme/slug-name.blade.php and yourtheme/woocommerce/slug-name.blade.php
if ( $name && ! WC_TEMPLATE_DEBUG_MODE ) {
Expand All @@ -46,6 +45,7 @@
}
if ( $bladeTemplate ) {
echo template( $bladeTemplate, $args );

return null;
}
//try to look for PHP files within resources/views/woocommerce
Expand Down

0 comments on commit 300e838

Please # to comment.