Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#26503 closed enhancement (worksforme)

$found_themes filter in wp-includes/theme.php

Reported by: nofearinc's profile nofearinc Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.7.1
Component: Themes Keywords: has-patch dev-feedback needs-docs
Focuses: Cc:

Description (last modified by nofearinc)

Occasionally different plugins could hide or reorder the themes listed in Appearance -> Themes. For example, the alphabetical order could be avoided for themes with a higher priority (to give some exposure to new themes) or hide some themes based on different options for the site.

Can we add a filter for $found_themes to allow for more flexibility on the Themes screen?

Attachments (1)

26503.diff (390 bytes) - added by nofearinc 11 years ago.

Download all attachments as: .zip

Change History (5)

@nofearinc
11 years ago

#1 @nofearinc
11 years ago

  • Description modified (diff)

#2 @obenland
11 years ago

  • Keywords dev-feedback added

#3 @SergeyBiryukov
11 years ago

  • Keywords needs-docs added
  • Milestone changed from Awaiting Review to 3.9

#4 @nacin
11 years ago

  • Milestone 3.9 deleted
  • Resolution set to worksforme
  • Status changed from new to closed

The sort here is merely for caching and data consistency reasons. search_theme_directories() is very low level.

A better place for the hook is wp_prepare_themes_for_js(), which gained a hook in 3.8.

Note: See TracTickets for help on using tickets.