[wp-trac] [WordPress Trac] #47522: Make name fields in profile page swappable and modifiable by locales

WordPress Trac noreply at wordpress.org
Tue Jun 11 04:40:27 UTC 2019


#47522: Make name fields in profile page swappable and modifiable by locales
------------------------------+---------------------------------
 Reporter:  Takahashi_Fumiki  |       Owner:  (none)
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  I18N              |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:  ui, administration
------------------------------+---------------------------------
Changes (by Takahashi_Fumiki):

 * keywords:  needs-patch => has-patch


Comment:

 Added new function `wp_get_user_name_parts()` to get an assoc array like
 this.

 {{{#!php
 <?php
 [
   'first_name' => __( 'First Name' ),
   'last_name'  => __( 'Last Name' ),
 ]
 }}}

 - This order can be controlled with `_x( 'first_name,last_name' ) `.
 - User edit function and admin screen are also relied on
 `wp_get_user_name_parts()`.
 - Select box for display_name is not fixed yet.

 Any feedbacks are welcomed!

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47522#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list