Fixing menu error.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1212 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-04-30 07:26:17 +00:00
parent 4f501b1bd6
commit f34bcfca6c

View File

@ -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>";
}
}