Ticket #3595: bookmark-template-php-2-3.diff
File bookmark-template-php-2-3.diff, 2.0 KB (added by , 18 years ago) |
---|
-
E:/EclipseWork/WordPressDev/wp-includes/bookmark-template.php
96 96 if ( '' != $rel ) 97 97 $rel = ' rel="' . $rel . '"'; 98 98 99 $desc = attribute_escape( $row->link_description);100 $name = attribute_escape( $row->link_name);99 $desc = attribute_escape(sanitize_bookmark_field('link_description', $row->link_description, $row->link_id, 'display')); 100 $name = attribute_escape(sanitize_bookmark_field('link_name', $row->link_name, $row->link_id, 'display')); 101 101 $title = $desc; 102 102 103 103 if ( $show_updated ) … … 145 145 } 146 146 147 147 function get_linkrating($link) { 148 return apply_filters('link_rating', $link->link_rating);148 return sanitize_bookmark_field('link_rating', $link->link_rating, $link->link_id, 'display'); 149 149 } 150 150 151 151 /** function get_linkcatname() … … 229 229 // Handle each category. 230 230 231 231 // Display the category name 232 echo ' <li id="linkcat-' . $cat->term_id . '" class="linkcat"><h2>' . $cat->name. "</h2>\n\t<ul>\n";232 echo ' <li id="linkcat-' . $cat->term_id . '" class="linkcat"><h2>' . apply_filters('link_category', $cat->name ) . "</h2>\n\t<ul>\n"; 233 233 // Call get_links() with all the appropriate params 234 234 get_links($cat->term_id, '<li>', "</li>", "\n", true, 'name', false); 235 235 … … 264 264 if ( '' != $rel ) 265 265 $rel = ' rel="' . $rel . '"'; 266 266 267 $desc = attribute_escape( apply_filters('link_description', $bookmark->link_description));268 $name = attribute_escape(apply_filters('link_title', $bookmark->link_name)); 267 $desc = attribute_escape(sanitize_bookmark_field('link_description', $row->link_description, $row->link_id, 'display')); 268 $name = attribute_escape(sanitize_bookmark_field('link_name', $row->link_name, $row->link_id, 'display')); 269 269 $title = $desc; 270 270 271 271 if ( $show_updated )