[wp-trac] [WordPress Trac] #39643: WP_User_Query does not allow search_fields to use display_name

WordPress Trac noreply at wordpress.org
Tue Jun 13 08:50:28 UTC 2017


#39643: WP_User_Query does not allow search_fields to use display_name
--------------------------------------+-----------------------------
 Reporter:  bcole808                  |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Future Release
Component:  Users                     |     Version:  4.8
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------

Comment (by engelen):

 Patch looks good to me as well. The unit tests are a bit limited, I would
 argue, in the sense that they only test for the `display_name` column
 (i.e., what went wrong in this case). However, the unit tests will still
 pass if, in a next release, the same problem occurs with `user_email`, for
 example.

 @obenland Can this be moved to 4.9? Seems like a solid, simple patch for
 what is clearly a bug.

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


More information about the wp-trac mailing list