mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
fix get_template function
This commit is contained in:
@@ -181,6 +181,10 @@ if ( ! class_exists( 'UM_Functions' ) ) {
|
||||
$array = explode( DIRECTORY_SEPARATOR, trim( $basename, DIRECTORY_SEPARATOR ) );
|
||||
$path = $array[0];
|
||||
}
|
||||
if ( substr_count( $path, '/' ) ) {
|
||||
$array = explode( '/', trim( $basename, '/' ) );
|
||||
$path = $array[0];
|
||||
}
|
||||
|
||||
$located = $this->locate_template( $template_name, $path );
|
||||
if ( ! file_exists( $located ) ) {
|
||||
|
||||
Reference in New Issue
Block a user