From b33c06593cf68fed06f36bcaa103a946d47971c2 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: https://develop.svn.wordpress.org/trunk@893 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 8844da43a7..cd710da1cc 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; }