diff --git a/wp-includes/user.php b/wp-includes/user.php index a83e57e099..22c2c1ea1d 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -2440,7 +2440,7 @@ function wp_get_users_with_no_role() { } $prefix = $wpdb->get_blog_prefix(); - $regex = implode( '|', wp_roles()->get_names() ); + $regex = implode( '|', array_keys( wp_roles()->get_names() ) ); $regex = preg_replace( '/[^a-zA-Z_\|-]/', '', $regex ); $users = $wpdb->get_col( $wpdb->prepare( " SELECT user_id diff --git a/wp-includes/version.php b/wp-includes/version.php index 8b2b051cf6..07f755c745 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38786'; +$wp_version = '4.7-alpha-38787'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.