but, the function get_theme_root_uri() when called from the functions.php of a theme located on the second path from the $wp_theme_directories array, returns:
http://localhost/content/themes
The themes from the folder /wp/wp-content/themes (the default ones that came with the WP submodule update) work fine.
I'm getting the wrong path for all assets in my themes (any theme I place into
/content/themes
)For example, in the source code, a stylesheet link points to:
http://localhost/content/themes/roots/assets/css/main.min.css
when it should be:
http://localhost/lab/Wordpress-Skeleton/content/themes/roots/assets/css/main.min.css
The global $wp_theme_directories returns an array with two paths, and both are correct:
.../htdocs/lab/WordPress-Skeleton/wp/wp-content/themes .../htdocs/lab/WordPress-Skeleton/content/themes
but, the function
get_theme_root_uri()
when called from thefunctions.php
of a theme located on the second path from the$wp_theme_directories
array, returns:http://localhost/content/themes
The themes from the folder
/wp/wp-content/themes
(the default ones that came with the WP submodule update) work fine.