diff --git a/wp-includes/template-functions-category.php b/wp-includes/template-functions-category.php
index 8844da43a..cd710da1c 100644
--- a/wp-includes/template-functions-category.php
+++ b/wp-includes/template-functions-category.php
@@ -63,16 +63,16 @@ function the_category($seperator = '', $parents='') {
switch(strtolower($parents)) {
case 'multiple':
if ($category->category_parent) echo get_category_parents($category->category_parent, TRUE);
- echo "$category->cat_name";
+ echo ''.$category->cat_name.'';
break;
case 'single':
- echo "";
+ echo 'cat_name";
+ echo $category->cat_name.'';
break;
case '':
default:
- echo "$category->cat_name";
+ echo ''.$category->cat_name.'';
}
}
echo '';
@@ -84,14 +84,14 @@ function the_category($seperator = '', $parents='') {
switch(strtolower($parents)) {
case 'multiple':
if ($category->category_parent) echo get_category_parents($category->category_parent, TRUE);
- echo "$category->cat_name";
+ echo ''.$category->cat_name.'';
case 'single':
- echo "";
- if ($category->category_parent)echo get_category_parents($category->category_parent, FALSE);
+ echo '';
+ if ($category->category_parent) echo get_category_parents($category->category_parent, FALSE);
echo "$category->cat_name";
case '':
default:
- echo "$category->cat_name";
+ echo ''.$category->cat_name.'';
}
++$i;
}
@@ -133,7 +133,7 @@ function get_category_parents($id, $link = FALSE, $separator = '/', $nicename =
}
if ($parent->category_parent) $chain .= get_category_parents($parent->category_parent, $link, $separator, $nicename);
if ($link) {
- $chain .= "$name" . $separator;
+ $chain .= 'cat_name.'">'.$name.'' . $separator;
} else {
$chain .= $name.$separator;
}