mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Fixing menu error.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1212 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4f501b1bd6
commit
f34bcfca6c
@ -27,8 +27,11 @@ foreach ($menu as $item) {
|
||||
if ((substr($self, -10) == substr($item[2], -10) && empty($parent_file)) || ($parent_file && ($item[2] == $parent_file))) $class = ' class="current"';
|
||||
|
||||
if ($user_level >= $item[1]) {
|
||||
if (('upload.php' == $item[2] && get_settings('use_fileupload') && ($user_level >= get_settings('fileupload_minlevel'))
|
||||
)) || 'upload.php' != $item[2])
|
||||
if (
|
||||
('upload.php' == $item[2] &&
|
||||
get_settings('use_fileupload') &&
|
||||
($user_level >= get_settings('fileupload_minlevel'))
|
||||
) || 'upload.php' != $item[2])
|
||||
echo "\n\t<li><a href='{$item[2]}'$class>{$item[0]}</a></li>";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user