[wp-trac] [WordPress Trac] #25292: WP_User_Query doesn't fill in query vars when no args are passed to constructor

WordPress Trac noreply at wordpress.org
Thu Sep 12 06:24:10 UTC 2013


#25292: WP_User_Query doesn't fill in query vars when no args are passed to
constructor
----------------------------+-----------------------------
 Reporter:  wonderboymusic  |       Owner:  wonderboymusic
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:  3.7
Component:  Query           |     Version:  3.1
 Severity:  normal          |  Resolution:  fixed
 Keywords:                  |
----------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"25392"]:
 {{{
 #!CommitTicketReference repository="" revision="25392"
 * Add `isset()` checks all over `WP_User_Query::prepare_query()` and
 `WP_User_Query::query()`. When a `WP_User_Query` instance is constructed
 without passing args, no query vars are filled in, thus `$qv` doesn't
 contain most of the expected indices.
 * Suppress an undefined index notice in `tests/user/query.php`

 Fixes #25292.
 See #25282.
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25292#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list