Make WordPress Core


Ignore:
Timestamp:
06/18/2004 12:22:09 AM (22 years ago)
Author:
rboren
Message:

stripslashes() elimination. Remove extra slashes during upgrade. Bugs 0000059 and 0000018

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-functions-category.php

    r1429 r1435  
    6969        $thelist .= '<ul class="post-categories">';
    7070        foreach ($categories as $category) {
    71             $category->cat_name = stripslashes($category->cat_name);
     71            $category->cat_name = $category->cat_name;
    7272            $thelist .= "\n\t<li>";
    7373            switch(strtolower($parents)) {
     
    9494        $i = 0;
    9595        foreach ($categories as $category) {
    96             $category->cat_name = stripslashes($category->cat_name);
     96            $category->cat_name = $category->cat_name;
    9797            if (0 < $i) $thelist .= $seperator . ' ';
    9898            switch(strtolower($parents)) {
     
    118118    $the_list = '';
    119119    foreach ($categories as $category) {
    120         $category->cat_name = stripslashes(convert_chars($category->cat_name));
     120        $category->cat_name = convert_chars($category->cat_name);
    121121        if ('rdf' == $type) {
    122122            $the_list .= "\n\t<dc:subject>$category->cat_name</dc:subject>";
     
    136136        $cat_name = $cache_categories[$cat_ID]->cat_name;
    137137    }
    138     return(stripslashes($cat_name));
     138    return($cat_name);
    139139}
    140140
     
    243243                echo ' selected="selected"';
    244244            echo '>';
    245             echo stripslashes($cat_name);
     245            echo $cat_name;
    246246            if (intval($optioncount) == 1) echo '&nbsp;&nbsp;('.$category->cat_count.')';
    247247            if (intval($optiondates) == 1) echo '&nbsp;&nbsp;'.$category->lastday.'/'.$category->lastmonth;
     
    360360            }
    361361            $link .= '>';
    362             $link .= apply_filters('list_cats', stripslashes($category->cat_name)).'</a>';
     362            $link .= apply_filters('list_cats', $category->cat_name).'</a>';
    363363
    364364            if ( (! empty($feed_image)) || (! empty($feed)) ) {
     
    373373
    374374                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;
    378378                    $link .= $title;
    379379                }
Note: See TracChangeset for help on using the changeset viewer.