[wp-trac] [WordPress Trac] #21119: Make WP_User_Query::prepare_query() public

WordPress Trac noreply at wordpress.org
Sun Feb 2 02:37:43 UTC 2014


#21119: Make WP_User_Query::prepare_query() public
----------------------------------------+------------------
 Reporter:  scribu                      |       Owner:
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  3.9
Component:  Users                       |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+------------------

Comment (by wonderboymusic):

 [attachment:21119.3.diff 21119.3.diff] adds unit tests for
 `WP_User_Query::prepare_query()` and demonstrates how it works. It only
 does something if `WP_User_Query::query_vars` is empty or an array of any
 options is passed. Otherwise, it rebuilds the object properties from the
 previously set query vars.

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


More information about the wp-trac mailing list