This commit is contained in:
Yurii Nalivaiko
2018-10-24 10:01:51 +03:00
parent aa9d1d4c37
commit e18475618c
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -438,7 +438,7 @@ if ( ! class_exists( 'UM' ) ) {
$array = explode( '\\', strtolower( $class ) );
$array[ count( $array ) - 1 ] = 'class-'. end( $array );
if ( strpos( $class, 'um_ext' ) === 0 ) {
$full_path = str_replace( 'ultimate-member', '', rtrim( um_path, '/' ) ) . str_replace( '_', '-', $array[1] ) . '/includes/';
$full_path = str_replace( 'ultimate-member', '', untrailingslashit( um_path ) ) . str_replace( '_', '-', $array[1] ) . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR;
unset( $array[0], $array[1] );
$path = implode( DIRECTORY_SEPARATOR, $array );
$path = str_replace( '_', '-', $path );