WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 8 months ago

#11164 closed enhancement (wontfix)

Add Theme Sort Filter

Reported by: uglyrobot Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Themes Keywords: needs-refresh
Focuses: Cc:

Description

I've run across the need for this in a few plugins. You can't adjust the order of themes in the theme browser as all filters are applied before the sort.

Aaron (for Incsub)

Attachments (1)

themesort.diff (892 bytes) - added by uglyrobot 4 years ago.
Theme sort filters

Download all attachments as: .zip

Change History (8)

comment:1 scribu4 years ago

  • Keywords needs-patch added
  • Milestone changed from 2.9 to Future Release

uglyrobot4 years ago

Theme sort filters

comment:2 follow-up: uglyrobot4 years ago

  • Keywords needs-patch removed
  • Milestone changed from Future Release to 2.9

In the patch I also added a class with the theme template name to the td element so you could style specific theme preview boxes. The theme template name may need to be filtered so it stays a valid css class name.

comment:3 scribu4 years ago

  • Keywords has-patch added

comment:4 ryan4 years ago

  • Milestone changed from 2.9 to Future Release

comment:5 in reply to: ↑ 2 uglyrobot4 years ago

Replying to uglyrobot:

In the patch I also added a class with the theme template name to the td element so you could style specific theme preview boxes. The theme template name may need to be filtered so it stays a valid css class name.

Run the theme name through sanitize_html_class();

comment:6 avryl8 months ago

  • Component changed from Administration to Themes
  • Keywords needs-refresh added; has-patch removed

comment:7 helen8 months ago

  • Milestone Future Release deleted
  • Resolution set to wontfix
  • Status changed from new to closed

4 years without further comment, doesn't seem to be a clamoring need. Feel free to reopen (and re-patch, because there is no way this comes close to applying anymore) with more details if it's still a thing.

Note: See TracTickets for help on using tickets.