- fixed members search engine;

- fixed get_template function for specific settings at Windows servers;
This commit is contained in:
nikitasinelnikov
2019-10-21 15:43:30 +03:00
parent 91048da275
commit 88f586ff11
2 changed files with 5 additions and 16 deletions
+2 -5
View File
@@ -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];
}