Function needed to support l10n for child themes
|Reported by:||johnjamesjacoby||Owned by:||westi|
The "load_theme_textdomain" function falls short when there is a parent theme to the currently active child theme style. Because load_theme_textdomain uses get_theme_directory, it will always load the parents textdomain, even if there are text changes included in the child style.
This patch includes a new function "load_style_textdomain" to allow child themes to have their own po/mo's. This would presumably be called in the child themes functions.php, or somewhere relative to it.
This may become more important with BuddyPress 1.1+ as the parent/child theme/style relationships become more popular.
Change History (9)
comment:2 @johnjamesjacoby — 5 years ago
- Priority changed from normal to high
- Severity changed from normal to major
- Owner changed from johnjamesjacoby to westi
- Status changed from new to reviewing