Changes from trunk/wp-admin/link-manager.php at r4700 to branches/2.2/wp-admin/link-manager.php at r5434
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/wp-admin/link-manager.php
r4700 r5434 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);136 $link->link_url = attribute_escape($link->link_url);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 $link->link_url = clean_url($link->link_url); 137 137 $link->link_category = wp_get_link_cats($link->link_id); 138 138 $short_url = str_replace('http://', '', $link->link_url); … … 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>"; … … 181 181 default: 182 182 ?> 183 <td><?php do_action('manage_link_custom_column', $column_name, $ id); ?></td>183 <td><?php do_action('manage_link_custom_column', $column_name, $link->link_id); ?></td> 184 184 <?php 185 185 break;
Note: See TracChangeset
for help on using the changeset viewer.