mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- fixed tooltip "a" tag CSS;
- fixed get_template function '/' to DIRECTORY_SEPARATOR; - changed loading posts.php template;
This commit is contained in:
@@ -178,7 +178,7 @@ if ( ! class_exists( 'UM_Functions' ) ) {
|
||||
|
||||
$path = '';
|
||||
if ( $basename ) {
|
||||
$array = explode( '/', trim( $basename, '/' ) );
|
||||
$array = explode( DIRECTORY_SEPARATOR, trim( $basename, DIRECTORY_SEPARATOR ) );
|
||||
$path = $array[0];
|
||||
}
|
||||
|
||||
@@ -286,7 +286,7 @@ if ( ! class_exists( 'UM_Functions' ) ) {
|
||||
function locate_template( $template_name, $path = '' ) {
|
||||
// check if there is template at theme folder
|
||||
$template = locate_template( array(
|
||||
trailingslashit( 'ultimate-member/' . $path ) . $template_name
|
||||
trailingslashit( 'ultimate-member' . DIRECTORY_SEPARATOR . $path ) . $template_name
|
||||
) );
|
||||
|
||||
if ( ! $template ) {
|
||||
@@ -295,7 +295,7 @@ if ( ! class_exists( 'UM_Functions' ) ) {
|
||||
} else {
|
||||
$template = trailingslashit( um_path );
|
||||
}
|
||||
$template .= 'templates/' . $template_name;
|
||||
$template .= 'templates' . DIRECTORY_SEPARATOR . $template_name;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user