Add a filter for changing where parent templates are located
|Reported by:||apeatling||Owned by:||westi|
|Component:||Themes||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.
Change History (51)
comment:29 markjaquith — 4 years ago
- Resolution set to fixed
- Status changed from reviewing to closed