From 251b4a04238c134bc00f544e03bd3de07a530ef1 Mon Sep 17 00:00:00 2001 From: michelvaldrighi Date: Fri, 20 Feb 2004 00:51:52 +0000 Subject: [PATCH] using "" for html attributes in some functions git-svn-id: http://svn.automattic.com/wordpress/trunk@893 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template-functions-category.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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; }