If parent theme (let's call it parent-theme) has a child theme (let's call it child-theme), then when calling ThemeProperties::basePath() from within child-theme I expect to see a path of .../wp-content/themes/child-theme.
Instead I get .../wp-content/themes/parent-theme.
Environment info
Package version: 1.6.0
Browser: N/A
System: Windows 10
Relevant log output
No response
Additional context
This is caused because properties are initialized using get_template_directory() instead of get_stylesheet_directory().
Code of Conduct
[X] I agree to follow this project's Code of Conduct
Description of the bug
When having a child theme,
ThemeProperties::basePath()
returns the parent theme's path instead of the child theme's.Reproduction instructions
ThemeProperties::basePath()
Expected behavior
If parent theme (let's call it
parent-theme
) has a child theme (let's call itchild-theme
), then when callingThemeProperties::basePath()
from withinchild-theme
I expect to see a path of.../wp-content/themes/child-theme
. Instead I get.../wp-content/themes/parent-theme
.Environment info
Package version: 1.6.0 Browser: N/A System: Windows 10
Relevant log output
No response
Additional context
This is caused because properties are initialized using
get_template_directory()
instead ofget_stylesheet_directory()
.Code of Conduct