WordPress.org

Make WordPress Core

Ticket #40628: 40628.3.patch

File 40628.3.patch, 625 bytes (added by Girishpanchal, 4 years ago)

Updated patch for multi-site.

  • src/wp-admin/includes/class-wp-ms-users-list-table.php

     
    258258         * @param WP_User $user The current WP_User object.
    259259         */
    260260        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                }
    262266        }
    263267
    264268        /**