Use get_users()
instead of the deprecated get_users_of_blog()
in Tests_User_Capabilities::setUp()
to avoid a tornado of warnings in debug mode.
See #25282. git-svn-id: https://develop.svn.wordpress.org/trunk@25353 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9dc7afd478
commit
135198d66d
@ -14,7 +14,7 @@ class Tests_User_Capabilities extends WP_UnitTestCase {
|
||||
// keep track of users we create
|
||||
$this->_flush_roles();
|
||||
|
||||
$this->orig_users = get_users_of_blog();
|
||||
$this->orig_users = get_users();
|
||||
}
|
||||
|
||||
function _flush_roles() {
|
||||
|
Loading…
Reference in New Issue
Block a user