Fixing menu error.
git-svn-id: https://develop.svn.wordpress.org/trunk@1212 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ba06a4558f
commit
4dced7a4a4
|
@ -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>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue