mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- 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:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user