- fixed save fields register/profile;

This commit is contained in:
nikitasinelnikov
2019-05-13 14:16:11 +03:00
parent 2eb633d0b5
commit e53924a0b2
8 changed files with 42 additions and 39 deletions
+3 -3
View File
@@ -167,7 +167,7 @@ if ( ! class_exists( 'UM_Functions' ) ) {
}
$path = '';
if( $basename ) {
if ( $basename ) {
$array = explode( '/', trim( $basename, '/' ) );
$path = $array[0];
}
@@ -279,8 +279,8 @@ if ( ! class_exists( 'UM_Functions' ) ) {
trailingslashit( 'ultimate-member/' . $path ) . $template_name
) );
if( !$template ) {
if( $path ) {
if ( ! $template ) {
if ( $path ) {
$template = trailingslashit( trailingslashit( WP_PLUGIN_DIR ) . $path );
} else {
$template = trailingslashit( um_path );