Fixing menu error.

git-svn-id: https://develop.svn.wordpress.org/trunk@1212 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-04-30 07:26:17 +00:00
parent ba06a4558f
commit 4dced7a4a4
1 changed files with 5 additions and 2 deletions

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 ((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 ($user_level >= $item[1]) {
if (('upload.php' == $item[2] && get_settings('use_fileupload') && ($user_level >= get_settings('fileupload_minlevel')) if (
)) || 'upload.php' != $item[2]) ('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>"; echo "\n\t<li><a href='{$item[2]}'$class>{$item[0]}</a></li>";
} }
} }