mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
* 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. git-svn-id: https://develop.svn.wordpress.org/trunk@25392 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -20,7 +20,7 @@ class Tests_User_Query extends WP_UnitTestCase {
|
||||
$users = new WP_User_Query();
|
||||
|
||||
$this->assertEquals( '', $users->get( 'fields' ) );
|
||||
$this->assertEquals( '', $users->query_vars['fields'] );
|
||||
$this->assertEquals( '', @$users->query_vars['fields'] );
|
||||
|
||||
$users->set( 'fields', 'all' );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user