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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user