mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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