Make WordPress Core

Opened 17 years ago

Closed 16 years ago

#10399 closed enhancement (fixed)

Random order of Category List in Add/Edit Link

Reported by: DrWingnut Owned by:
Priority: low Milestone: 3.0
Component: Administration Version: 2.8.1
Severity: trivial Keywords: link admin has-patch needs-testing
Cc: Focuses:

Description

The add/edit administration link (.../wp-admin/link.php?action=edit&link_id=###) dialog shows the category list in random order. Could this list please be sorted alphabetically by category name for more rapid visual parsing.

Attachments (5)

CategoriesInRandomOrder.jpg (70.1 KB ) - added by DrWingnut 17 years ago.
categories-orderby-count.png (11.9 KB ) - added by jamierumbelow 17 years ago.
Shows how the category listing is ordered by count
10399-link-cats-sort-by-name.diff (446 bytes ) - added by jamierumbelow 17 years ago.
"Fix" for the ticket
10399-sort-by-name.diff (410 bytes ) - added by pnettle 17 years ago.
Sort by name
10399-refreshed.diff (495 bytes ) - added by chrisscott 16 years ago.

Download all attachments as: .zip

Change History (13)

@jamierumbelow
17 years ago

Shows how the category listing is ordered by count

@jamierumbelow
17 years ago

"Fix" for the ticket

#1 @jamierumbelow
17 years ago

  • Keywords has-patch added
  • Milestone Unassigned2.8.2
  • Priority normallow
  • Resolutionfixed
  • Severity normaltrivial
  • Status newclosed

If you take a look at wp-admin/includes/template.php on Line 610, you can see that it is actually being sorted by the number of links in that category. However, I believe that sorting the categories alphabetically would actually be a better idea, so attached is the diff for that change.

It's up to whoever makes the decisions to decide whether this should be included or not!

#2 @johnbillion
17 years ago

  • Milestone 2.8.2
  • Resolution fixed
  • Status closedreopened
  • Type defect (bug)enhancement

Hey jamierumbelow, thanks for helping improve WordPress! Just for your future reference, a ticket in Trac isn't marked as fixed until the issue is fixed and committed into the WP core.

#3 @jamierumbelow
17 years ago

Sorry - I think I've done something like that before... I'll remember next time!

#4 @Denis-de-Bernardy
17 years ago

  • Keywords needs-patch added; has-patch removed
  • Milestone2.9

it needs to be ordered by name imo

@pnettle
17 years ago

Sort by name

#5 @pnettle
17 years ago

  • Keywords has-patch added; needs-patch removed

#6 @ryan
17 years ago

  • Milestone 2.93.0

#7 @chrisscott
16 years ago

  • Keywords needs-testing added

Refreshed patch attached in attachment:ticket:10399:10399-refreshed.diff since this didn't apply cleanly against r13308.

#8 @nacin
16 years ago

  • Resolutionfixed
  • Status reopenedclosed

(In [13313]) Order link categories by name, not count, on Add/Edit Link page. Fixes #10399 props pnettle, chrisscott.

Note: See TracTickets for help on using tickets.