mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +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:
@@ -3172,7 +3172,6 @@ do_action( "um_install_info_after_page_config" ); ?>
|
||||
Default New User Role: <?php echo UM()->options()->get('register_role') . "\n"; ?>
|
||||
Profile Permalink Base: <?php echo UM()->options()->get('permalink_base') . "\n"; ?>
|
||||
User Display Name: <?php echo UM()->options()->get('display_name') . "\n"; ?>
|
||||
Force Name to Uppercase: <?php echo $this->info_value( UM()->options()->get('force_display_name_capitlized'), 'yesno', true ); ?>
|
||||
Redirect author to profile: <?php echo $this->info_value( UM()->options()->get('author_redirect'), 'yesno', true ); ?>
|
||||
Enable Members Directory: <?php echo $this->info_value( UM()->options()->get('members_page'), 'yesno', true ); ?>
|
||||
Use Gravatars: <?php echo $this->info_value( UM()->options()->get('use_gravatars'), 'yesno', true ); ?>
|
||||
|
||||
@@ -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