[wp-trac] [WordPress Trac] #10467: Add a filter for changing where parent templates are located
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 22 23:19:47 UTC 2009
#10467: Add a filter for changing where parent templates are located
-------------------------+--------------------------------------------------
Reporter: apeatling | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Themes | Version: 2.8
Severity: normal | Keywords: has-patch, themes, parent themes, buddypress
-------------------------+--------------------------------------------------
I propose adding a filter to get_themes() that will allow plugins to
redefine where to look for parent themes, based on the child themes'
$template value.
Here is a scenario where this would be useful:
BuddyPress includes a default theme bundled inside of its plugin
directory. Currently users have to move this theme to the themes
directory. They have to do this on every single update.
If the default theme was a parent theme sitting inside of the BuddyPress
plugin directory, it will be updated at the same time as the plugin is
updated. This way any child themes would automatically see the updates
without the need for moving folders or editing themes.
The change needed for this is very simple. Please see attached patch.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10467>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list