[wp-trac] [WordPress Trac] #16620: WP_User_Query, one more column solves many problems
WordPress Trac
wp-trac at lists.automattic.com
Wed Feb 23 15:56:32 UTC 2011
#16620: WP_User_Query, one more column solves many problems
-------------------------+-----------------------------
Reporter: jasonnathan | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: 3.1
Severity: normal | Keywords: has-patch
-------------------------+-----------------------------
It is currently not very easy to search a user by his first or last name
but if one more column (in fact, just one more word) was added to the User
Query object, we could instruct our users to set their display name to
something that represents their names and they become searchable!
change line 490 from :
{{{
else
$search_columns = array('user_login', 'user_nicename');
}}}
to
{{{
else
$search_columns = array('user_login', 'user_nicename',
'display_name');
}}}
Now the display name yields results from search
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16620>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list