diff --git a/includes/admin/core/class-admin-settings.php b/includes/admin/core/class-admin-settings.php index 34d3d515..a37ddbee 100644 --- a/includes/admin/core/class-admin-settings.php +++ b/includes/admin/core/class-admin-settings.php @@ -3172,7 +3172,6 @@ do_action( "um_install_info_after_page_config" ); ?> Default New User Role: options()->get('register_role') . "\n"; ?> Profile Permalink Base: options()->get('permalink_base') . "\n"; ?> User Display Name: options()->get('display_name') . "\n"; ?> -Force Name to Uppercase: info_value( UM()->options()->get('force_display_name_capitlized'), 'yesno', true ); ?> Redirect author to profile: info_value( UM()->options()->get('author_redirect'), 'yesno', true ); ?> Enable Members Directory: info_value( UM()->options()->get('members_page'), 'yesno', true ); ?> Use Gravatars: info_value( UM()->options()->get('use_gravatars'), 'yesno', true ); ?> diff --git a/includes/um-short-functions.php b/includes/um-short-functions.php index 4388bae4..a35e69b1 100644 --- a/includes/um-short-functions.php +++ b/includes/um-short-functions.php @@ -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 *