Ticket #1105: link-add.diff
File link-add.diff, 890 bytes (added by , 19 years ago) |
---|
-
wp-admin/link-add.php
8 8 function category_dropdown($fieldname, $selected = 0) { 9 9 global $wpdb; 10 10 11 $results = $wpdb->get_results("SELECT cat_id, cat_name, auto_toggle FROM $wpdb->linkcategories ORDER BY cat_ id");11 $results = $wpdb->get_results("SELECT cat_id, cat_name, auto_toggle FROM $wpdb->linkcategories ORDER BY cat_name"); 12 12 echo "\n<select name='$fieldname' size='1'>\n"; 13 13 foreach ($results as $row) { 14 14 echo "\n\t<option value='$row->cat_id'"; 15 15 if ($row->cat_id == $selected) 16 16 echo " selected='selected'"; 17 echo "> $row->cat_id :" . wp_specialchars($row->cat_name);17 echo ">" . wp_specialchars($row->cat_name); 18 18 if ($row->auto_toggle == 'Y') 19 19 echo ' (auto toggle)'; 20 20 echo "</option>";