Unify user and author queries on cache_userdata

git-svn-id: https://develop.svn.wordpress.org/trunk@1186 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2004-04-27 03:59:13 +00:00
parent e848549387
commit a443c7fe53
3 changed files with 10 additions and 7 deletions
+4 -3
View File
@@ -270,9 +270,10 @@ if ('' != $category_name) {
$whichcat .= ")";
}
// author stuff
foreach ($users as $auteur) {
$cache_authors[$auteur->ID] = $auteur;
// Author/user stuff
$users = $wpdb->get_results("SELECT * FROM $tableusers WHERE 1=1");
foreach ($users as $user) {
$cache_userdata[$user->ID] = $user;
}
if ((empty($author)) || ($author == 'all') || ($author == '0')) {