Changeset 53501 for trunk/src/wp-includes/user.php
- Timestamp:
- 06/14/2022 02:41:10 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user.php
r53458 r53501 828 828 829 829 if ( $args['show_fullname'] && '' !== $user->first_name && '' !== $user->last_name ) { 830 $name = "$user->first_name $user->last_name"; 830 $name = sprintf( 831 /* translators: 1: User's first name, 2: Last name. */ 832 _x( '%1$s %2$s', 'Display name based on first name and last name' ), 833 $user->first_name, 834 $user->last_name 835 ); 831 836 } else { 832 837 $name = $user->display_name; … … 2243 2248 $display_name = $user_login; 2244 2249 } elseif ( $meta['first_name'] && $meta['last_name'] ) { 2245 /* translators: 1: User's first name, 2: Last name. */ 2246 $display_name = sprintf( _x( '%1$s %2$s', 'Display name based on first name and last name' ), $meta['first_name'], $meta['last_name'] ); 2250 $display_name = sprintf( 2251 /* translators: 1: User's first name, 2: Last name. */ 2252 _x( '%1$s %2$s', 'Display name based on first name and last name' ), 2253 $meta['first_name'], 2254 $meta['last_name'] 2255 ); 2247 2256 } elseif ( $meta['first_name'] ) { 2248 2257 $display_name = $meta['first_name'];
Note: See TracChangeset
for help on using the changeset viewer.