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: http://svn.automattic.com/wordpress/trunk@2702 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt
2005-07-09 01:27:46 +00:00
parent 233afca132
commit 13f492ab75
14 changed files with 167 additions and 106 deletions

View File

@@ -437,8 +437,11 @@ function dropdown_categories($default = 0) {
// Dandy new recursive multiple category stuff.
function cat_rows($parent = 0, $level = 0, $categories = 0) {
global $wpdb, $class, $user_level;
if (!$categories)
global $wpdb, $class, $current_user;
$user_level = $current_user->user_level;
if ( !$categories )
$categories = $wpdb->get_results("SELECT * FROM $wpdb->categories ORDER BY cat_name");
if ($categories) {