Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#26503 closed enhancement (worksforme)

$found_themes filter in wp-includes/theme.php

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

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 13 years ago.

Download all attachments as: .zip

Change History (5)

@nofearinc
13 years ago

#1 @nofearinc
13 years ago

  • Description modified (diff)

#2 @obenland
13 years ago

  • Keywords dev-feedback added

#3 @SergeyBiryukov
13 years ago

  • Keywords needs-docs added
  • Milestone Awaiting Review → 3.9

#4 @nacin
13 years ago

  • Milestone 3.9
  • Resolution → worksforme
  • Status new → 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.