Massive user_level fix. We were still using the user_level field in wp_users in some places, where we should just use the table prefixed usermeta value.

git-svn-id: https://develop.svn.wordpress.org/trunk@2702 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2005-07-09 01:27:46 +00:00
parent 5bd6027fbd
commit 810e0018f4
14 changed files with 167 additions and 106 deletions
+3 -2
View File
@@ -11,6 +11,7 @@ get_currentuserinfo();
<h2><?php _e('Page Management'); ?></h2>
<?php
/*
if (isset($user_ID) && ('' != intval($user_ID))) {
$posts = $wpdb->get_results("
SELECT $wpdb->posts.*, $wpdb->users.user_level FROM $wpdb->posts
@@ -18,9 +19,9 @@ if (isset($user_ID) && ('' != intval($user_ID))) {
WHERE $wpdb->posts.post_status = 'static'
AND ($wpdb->users.user_level < $user_level OR $wpdb->posts.post_author = $user_ID)
");
} else {
} else { */
$posts = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_status = 'static'");
}
// } FIXME
if ($posts) {
?>