Ticket #40628: 40628.4.patch
File 40628.4.patch, 1.3 KB (added by , 7 years ago) |
---|
-
wp-admin/includes/class-wp-ms-users-list-table.php
258 258 * @param WP_User $user The current WP_User object. 259 259 */ 260 260 public function column_name( $user ) { 261 echo "$user->first_name $user->last_name"; 261 if ( ! empty( $user->first_name ) || ! empty( $user->last_name ) ) { 262 echo "$user->first_name $user->last_name"; 263 } else { 264 echo _x( 'Unknown' ); 265 } 262 266 } 263 267 264 268 /** -
wp-admin/includes/class-wp-users-list-table.php
471 471 $r .= "$avatar $edit"; 472 472 break; 473 473 case 'name': 474 $r .= "$user_object->first_name $user_object->last_name"; 474 if ( ! empty( $user_object->first_name ) || ! empty( $user_object->last_name ) ) { 475 $r .= "$user_object->first_name $user_object->last_name"; 476 } else { 477 $r .= _x( 'Unknown' ); 478 } 475 479 break; 476 480 case 'email': 477 481 $r .= "<a href='" . esc_url( "mailto:$email" ) . "'>$email</a>";