mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-11 02:49:04 +01:00
Oops take care of use_Adminlevels flag.
git-svn-id: http://svn.automattic.com/wordpress/trunk@277 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e63e4b034b
commit
8738bf8208
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user