mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-13 03:36:28 +09:00
- fixed members search engine;
- fixed get_template function for specific settings at Windows servers;
This commit is contained in:
@@ -178,11 +178,8 @@ if ( ! class_exists( 'UM_Functions' ) ) {
|
||||
|
||||
$path = '';
|
||||
if ( $basename ) {
|
||||
$array = explode( DIRECTORY_SEPARATOR, trim( $basename, DIRECTORY_SEPARATOR ) );
|
||||
$path = $array[0];
|
||||
}
|
||||
if ( substr_count( $path, '/' ) ) {
|
||||
$array = explode( '/', trim( $basename, '/' ) );
|
||||
// use '/' instead of "DIRECTORY_SEPARATOR", because wp_normalize_path makes the correct replace
|
||||
$array = explode( '/', wp_normalize_path( trim( $basename ) ) );
|
||||
$path = $array[0];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user