Use class instead of ID.

git-svn-id: http://svn.automattic.com/wordpress/trunk@448 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2003-10-13 05:34:07 +00:00
parent f268c0ad4b
commit a5e54ed983
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ foreach ($menu as $item) {
if ($continue) {
$item = explode("\t", $item);
// 0 = user level, 1 = file, 2 = name
if (substr($PHP_SELF, -6) == substr($item[1], -6)) $class = ' id="current"';
if (substr($PHP_SELF, -6) == substr($item[1], -6)) $class = ' class="current"';
if ($user_level >= $item[0]) echo "\n\t<li><a href='{$item[1]}'$class>{$item[2]}</a></li>";
}
}