- removed outdated setting using in code (force_display_name_capitlized). Moved the functionality to extended repo:

https://github.com/ultimatemember/Extended/tree/main/um-capitalize-name#readme
This commit is contained in:
Nikita Sinelnikov
2022-10-24 14:29:04 +03:00
parent e6b4d66b44
commit b547d899bc
2 changed files with 1 additions and 17 deletions
+1 -16
View File
@@ -2306,10 +2306,6 @@ function um_user( $data, $attrs = null ) {
$name = um_profile( $data );
if ( UM()->options()->get( 'force_display_name_capitlized' ) ) {
$name = implode( '-', array_map( 'ucfirst', explode( '-', $name ) ) );
}
/**
* UM hook
*
@@ -2366,14 +2362,7 @@ function um_user( $data, $attrs = null ) {
$f_and_l_initial = um_profile( $data );
}
$f_and_l_initial = UM()->validation()->safe_name_in_url( $f_and_l_initial );
if ( UM()->options()->get( 'force_display_name_capitlized' ) ) {
$name = implode( '-', array_map( 'ucfirst', explode( '-', $f_and_l_initial ) ) );
} else {
$name = $f_and_l_initial;
}
$name = UM()->validation()->safe_name_in_url( $f_and_l_initial );
return $name;
break;
@@ -2459,10 +2448,6 @@ function um_user( $data, $attrs = null ) {
}
}
if ( UM()->options()->get( 'force_display_name_capitlized' ) ) {
$name = implode( '-', array_map( 'ucfirst', explode( '-', $name ) ) );
}
/**
* UM hook
*