Wordpress/tests
Felix Arntz 761c45157e Multisite: Fix count_users() possibly querying incorrect roles when passed a different site ID.
The `time` strategy in `count_users()` queries users by role. However, the roles queried for were not affected by passing another site than the current one through the `$site_id` parameter, causing users having roles that were not queried for to appear as users without a role. This changeset fixes the issue by switching the site before retrieving the roles to query for.

Fixes #42014.


git-svn-id: https://develop.svn.wordpress.org/trunk@41653 602fd350-edb4-49c9-b593-d223f7449a82
2017-09-30 03:53:27 +00:00
..
phpunit Multisite: Fix count_users() possibly querying incorrect roles when passed a different site ID. 2017-09-30 03:53:27 +00:00
qunit Customize: Introduce drafting and scheduling for Customizer changesets. 2017-09-27 22:24:37 +00:00