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 );