Make WordPress Core

Ticket #1105: link-add.diff

File link-add.diff, 890 bytes (added by kim, 19 years ago)
  • wp-admin/link-add.php

     
    88function category_dropdown($fieldname, $selected = 0) {
    99        global $wpdb;
    1010       
    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");
    1212        echo "\n<select name='$fieldname' size='1'>\n";
    1313        foreach ($results as $row) {
    1414                echo "\n\t<option value='$row->cat_id'";
    1515                if ($row->cat_id == $selected)
    1616                        echo " selected='selected'";
    17                 echo ">$row->cat_id : " . wp_specialchars($row->cat_name);
     17                echo ">" . wp_specialchars($row->cat_name);
    1818                if ($row->auto_toggle == 'Y')
    1919                        echo ' (auto toggle)';
    2020                echo "</option>";