From b98bd1529c1a8e44c8620f2e72e41d37e1579da7 Mon Sep 17 00:00:00 2001 From: yura_nalivaiko Date: Wed, 25 Oct 2017 17:11:58 +0300 Subject: [PATCH] - fixed template function; --- includes/class-functions.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/class-functions.php b/includes/class-functions.php index a840e3a8..35d0242c 100644 --- a/includes/class-functions.php +++ b/includes/class-functions.php @@ -248,10 +248,11 @@ if ( ! class_exists( 'UM_Functions' ) ) { if( !$template ) { if( $path ) { - $template = trailingslashit( trailingslashit( WP_PLUGIN_DIR ) . $path ) . $template_name; + $template = trailingslashit( trailingslashit( WP_PLUGIN_DIR ) . $path ); } else { - $template = trailingslashit( um_path . 'templates' ) . $template_name; + $template = trailingslashit( um_path ); } + $template .= 'templates/' . $template_name; } // Return what we found. return apply_filters( 'um_locate_template', $template, $template_name, $path );