Changeset 5642 for trunk/wp-admin/link-manager.php
- Timestamp:
- 06/03/2007 05:28:27 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/link-manager.php
r5523 r5642 77 77 <form id="cats" method="get" action=""> 78 78 <p><?php 79 $categories = get_ categories("hide_empty=1&type=link");79 $categories = get_terms('link_category', "hide_empty=1"); 80 80 $select_cat = "<select name=\"cat_id\">\n"; 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(apply_filters('link_category', $cat->cat_name)) . "</option>\n";83 $select_cat .= '<option value="' . $cat->term_id . '"' . (($cat->term_id == $cat_id) ? " selected='selected'" : '') . '>' . wp_specialchars(apply_filters('link_category', $cat->name)) . "</option>\n"; 84 84 $select_cat .= "</select>\n"; 85 85
Note: See TracChangeset
for help on using the changeset viewer.