From 8738bf8208c131167914c1ee45fa50bdcb3191e6 Mon Sep 17 00:00:00 2001 From: mikelittle Date: Sun, 27 Jul 2003 00:31:51 +0000 Subject: [PATCH] Oops take care of use_Adminlevels flag. git-svn-id: http://svn.automattic.com/wordpress/trunk@277 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/linkmanager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/linkmanager.php b/wp-admin/linkmanager.php index f4d86ef36f..5d204c61e4 100644 --- a/wp-admin/linkmanager.php +++ b/wp-admin/linkmanager.php @@ -89,7 +89,7 @@ switch ($action) { $all_links = join(',', $linkcheck); $results = $wpdb->get_results("SELECT link_id, link_owner, user_level FROM $tablelinks LEFT JOIN $tableusers ON link_owner = ID WHERE link_id in ($all_links)"); foreach ($results as $row) { - if ($user_level >= $row->user_level) { // ok to proceed + if (!$use_adminlevels || ($user_level >= $row->user_level)) { // ok to proceed $ids_to_change[] = $row->link_id; } }