Changeset 1435 for trunk/wp-includes/template-functions-category.php
- Timestamp:
- 06/18/2004 12:22:09 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/template-functions-category.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-category.php
r1429 r1435 69 69 $thelist .= '<ul class="post-categories">'; 70 70 foreach ($categories as $category) { 71 $category->cat_name = stripslashes($category->cat_name);71 $category->cat_name = $category->cat_name; 72 72 $thelist .= "\n\t<li>"; 73 73 switch(strtolower($parents)) { … … 94 94 $i = 0; 95 95 foreach ($categories as $category) { 96 $category->cat_name = stripslashes($category->cat_name);96 $category->cat_name = $category->cat_name; 97 97 if (0 < $i) $thelist .= $seperator . ' '; 98 98 switch(strtolower($parents)) { … … 118 118 $the_list = ''; 119 119 foreach ($categories as $category) { 120 $category->cat_name = stripslashes(convert_chars($category->cat_name));120 $category->cat_name = convert_chars($category->cat_name); 121 121 if ('rdf' == $type) { 122 122 $the_list .= "\n\t<dc:subject>$category->cat_name</dc:subject>"; … … 136 136 $cat_name = $cache_categories[$cat_ID]->cat_name; 137 137 } 138 return( stripslashes($cat_name));138 return($cat_name); 139 139 } 140 140 … … 243 243 echo ' selected="selected"'; 244 244 echo '>'; 245 echo stripslashes($cat_name);245 echo $cat_name; 246 246 if (intval($optioncount) == 1) echo ' ('.$category->cat_count.')'; 247 247 if (intval($optiondates) == 1) echo ' '.$category->lastday.'/'.$category->lastmonth; … … 360 360 } 361 361 $link .= '>'; 362 $link .= apply_filters('list_cats', stripslashes($category->cat_name)).'</a>';362 $link .= apply_filters('list_cats', $category->cat_name).'</a>'; 363 363 364 364 if ( (! empty($feed_image)) || (! empty($feed)) ) { … … 373 373 374 374 if ( !empty($feed) ) { 375 $title = ' title="' . stripslashes($feed). '"';376 $alt = ' alt="' . stripslashes($feed). '"';377 $name = stripslashes($feed);375 $title = ' title="' . $feed . '"'; 376 $alt = ' alt="' . $feed . '"'; 377 $name = $feed; 378 378 $link .= $title; 379 379 }
Note: See TracChangeset
for help on using the changeset viewer.