WordPress.org

Make WordPress Core

Changeset 4272


Ignore:
Timestamp:
10/02/2006 09:52:11 PM (15 years ago)
Author:
ryan
Message:

Show all cats when editing link. Order cats by most used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-functions.php

    r4266 r4272  
    671671function return_link_categories_list($parent = 0) {
    672672    global $wpdb;
    673     return $wpdb->get_col("SELECT cat_ID FROM $wpdb->categories WHERE category_parent = $parent AND link_count > 0");
     673    return $wpdb->get_col("SELECT cat_ID FROM $wpdb->categories WHERE category_parent = $parent ORDER BY link_count DESC");
    674674}
    675675
Note: See TracChangeset for help on using the changeset viewer.