Add missing breaks to the_category().
git-svn-id: http://svn.automattic.com/wordpress/trunk@1444 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b8f38cca10
commit
eedeb9dea1
|
@ -99,10 +99,12 @@ function the_category($seperator = '', $parents='') {
|
|||
case 'multiple':
|
||||
if ($category->category_parent) $thelist .= get_category_parents($category->category_parent, TRUE);
|
||||
$thelist .= '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '">'.$category->cat_name.'</a>';
|
||||
break;
|
||||
case 'single':
|
||||
$thelist .= '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '">';
|
||||
if ($category->category_parent) $thelist .= get_category_parents($category->category_parent, FALSE);
|
||||
$thelist .= "$category->cat_name</a>";
|
||||
break;
|
||||
case '':
|
||||
default:
|
||||
$thelist .= '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '">'.$category->cat_name.'</a>';
|
||||
|
|
Loading…
Reference in New Issue