mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Make sure is instantiated. see #12997
git-svn-id: https://develop.svn.wordpress.org/trunk@14094 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -418,7 +418,12 @@ function count_users($strategy = 'time') {
|
||||
$blog_prefix = $wpdb->get_blog_prefix($id);
|
||||
$result = array();
|
||||
|
||||
if ('time' == $strategy) {
|
||||
if ( 'time' == $strategy ) {
|
||||
global $wp_roles;
|
||||
|
||||
if ( ! isset( $wp_roles ) )
|
||||
$wp_roles = new WP_Roles();
|
||||
|
||||
$avail_roles = $wp_roles->get_names();
|
||||
|
||||
// Build a CPU-intensive query that will return concise information.
|
||||
|
||||
Reference in New Issue
Block a user