Changeset 5011
- Timestamp:
- 03/10/2007 01:13:49 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/link-import.php
r4953 r5011 49 49 foreach ($categories as $category) { 50 50 ?> 51 <option value="<?php echo $category->cat_ID; ?>"><?php echo wp_specialchars( $category->cat_name); ?></option>51 <option value="<?php echo $category->cat_ID; ?>"><?php echo wp_specialchars(apply_filters('link_category', $category->cat_name)); ?></option> 52 52 <?php 53 53 } // end foreach -
trunk/wp-admin/link-manager.php
r4700 r5011 81 81 $select_cat .= '<option value="all"' . (($cat_id == 'all') ? " selected='selected'" : '') . '>' . __('All') . "</option>\n"; 82 82 foreach ((array) $categories as $cat) 83 $select_cat .= '<option value="' . $cat->cat_ID . '"' . (($cat->cat_ID == $cat_id) ? " selected='selected'" : '') . '>' . wp_specialchars( $cat->cat_name) . "</option>\n";83 $select_cat .= '<option value="' . $cat->cat_ID . '"' . (($cat->cat_ID == $cat_id) ? " selected='selected'" : '') . '>' . wp_specialchars(apply_filters('link_category', $cat->cat_name)) . "</option>\n"; 84 84 $select_cat .= "</select>\n"; 85 85 … … 132 132 <?php 133 133 foreach ($links as $link) { 134 $link->link_name = attribute_escape( $link->link_name);135 $link->link_description = wp_specialchars( $link->link_description);134 $link->link_name = attribute_escape(apply_filters('link_title', $link->link_name)); 135 $link->link_description = wp_specialchars(apply_filters('link_description', $link->link_description)); 136 136 $link->link_url = attribute_escape($link->link_url); 137 137 $link->link_category = wp_get_link_cats($link->link_id); … … 161 161 foreach ($link->link_category as $category) { 162 162 $cat_name = get_the_category_by_ID($category); 163 $cat_name = wp_specialchars( $cat_name);163 $cat_name = wp_specialchars(apply_filters('link_category', $cat_name)); 164 164 if ( $cat_id != $category ) 165 165 $cat_name = "<a href='link-manager.php?cat_id=$category'>$cat_name</a>"; -
trunk/wp-includes/bookmark-template.php
r4964 r5011 267 267 $rel = ' rel="' . $rel . '"'; 268 268 269 $desc = attribute_escape( $bookmark->link_description);270 $name = attribute_escape($bookmark->link_name); 271 $title = $desc;269 $desc = attribute_escape(apply_filters('link_description', $bookmark->link_description)); 270 $name = attribute_escape(apply_filters('link_title', $bookmark->link_name)); 271 $title = $desc; 272 272 273 273 if ( $show_updated ) … … 337 337 continue; 338 338 $output .= str_replace(array('%id', '%class'), array("linkcat-$cat->cat_ID", $class), $category_before); 339 $output .= "$title_before$cat->cat_name$title_after\n\t<ul>\n"; 339 $catname = apply_filters( "link_category", $cat->cat_name ); 340 $output .= "$title_before$catname$title_after\n\t<ul>\n"; 340 341 $output .= _walk_bookmarks($bookmarks, $r); 341 342 $output .= "\n\t</ul>\n$category_after\n"; -
trunk/wp-links-opml.php
r4656 r5011 30 30 31 31 foreach ((array) $cats as $cat) { 32 $catname = apply_filters('link_category', $cat->cat_name); 33 32 34 ?> 33 <outline type="category" title="<?php echo attribute_escape($cat ->cat_name); ?>">35 <outline type="category" title="<?php echo attribute_escape($catname); ?>"> 34 36 <?php 35 37 36 38 $bookmarks = get_bookmarks("category={$cat->cat_ID}"); 37 39 foreach ((array) $bookmarks as $bookmark) { 40 $title = attribute_escape(apply_filters('link_title', $bookmark->link_name)); 38 41 ?> 39 <outline text="<?php echo attribute_escape($bookmark->link_name); ?>" type="link" xmlUrl="<?php echo attribute_escape($bookmark->link_rss); ?>" htmlUrl="<?php echo attribute_escape($bookmark->link_url); ?>" updated="<?php if ('0000-00-00 00:00:00' != $bookmark->link_updated) echo $bookmark->link_updated; ?>" />42 <outline text="<?php echo $title; ?>" type="link" xmlUrl="<?php echo attribute_escape($bookmark->link_rss); ?>" htmlUrl="<?php echo attribute_escape($bookmark->link_url); ?>" updated="<?php if ('0000-00-00 00:00:00' != $bookmark->link_updated) echo $bookmark->link_updated; ?>" /> 40 43 <?php 41 44
Note: See TracChangeset
for help on using the changeset viewer.