Changeset 1435 for trunk/wp-includes/links.php
- Timestamp:
- 06/18/2004 12:22:09 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/links.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/links.php
r1355 r1435 177 177 $the_link = '#'; 178 178 if (($row->link_url != null) && ($row->link_url != '')) { 179 $the_link = htmlspecialchars( stripslashes($row->link_url));180 } 181 $rel = stripslashes($row->link_rel);179 $the_link = htmlspecialchars($row->link_url); 180 } 181 $rel = $row->link_rel; 182 182 if ($rel != '') { 183 183 $rel = " rel='$rel'"; 184 184 } 185 $desc = htmlspecialchars( stripslashes($row->link_description), ENT_QUOTES);186 $name = htmlspecialchars( stripslashes($row->link_name), ENT_QUOTES);185 $desc = htmlspecialchars($row->link_description, ENT_QUOTES); 186 $name = htmlspecialchars($row->link_name, ENT_QUOTES); 187 187 188 188 $title = $desc; … … 274 274 ** $links = get_linkobjectsbyname('fred'); 275 275 ** foreach ($links as $link) { 276 ** echo '<li>'. stripslashes($link->link_name).'</li>';276 ** echo '<li>'.$link->link_name.'</li>'; 277 277 ** } 278 278 **/ … … 351 351 if ($results) { 352 352 foreach ($results as $result) { 353 $result->link_url = stripslashes($result->link_url);354 $result->link_name = stripslashes($result->link_name);355 $result->link_description = stripslashes($result->link_description);356 $result->link_notes = stripslashes($result->link_notes);353 $result->link_url = $result->link_url; 354 $result->link_name = $result->link_name; 355 $result->link_description = $result->link_description; 356 $result->link_notes = $result->link_notes; 357 357 $newresults[] = $result; 358 358 } … … 465 465 $cat_name = $wpdb->get_var("SELECT cat_name FROM $wpdb->linkcategories WHERE cat_id=$id"); 466 466 } 467 return stripslashes($cat_name);467 return $cat_name; 468 468 } 469 469 … … 560 560 561 561 // Display the category name 562 echo ' <li id="'.sanitize_title($cat['cat_name']).'">' . stripslashes($cat['cat_name']). "\n\t<ul>\n";562 echo ' <li id="'.sanitize_title($cat['cat_name']).'">' . $cat['cat_name'] . "\n\t<ul>\n"; 563 563 // Call get_links() with all the appropriate params 564 564 get_links($cat['link_category'],
Note: See TracChangeset
for help on using the changeset viewer.