get_stylesheet_directory() outputs a internal file path, but for base url get_stylesheet_directory_uri() is the correct function (and works in my local test setup).
Release Notes
Fix function mentioned in docs: Use get_stylesheet_directory_uri() for baseUrl setting
Description of the Change
get_stylesheet_directory()
outputs a internal file path, but for base urlget_stylesheet_directory_uri()
is the correct function (and works in my local test setup).Release Notes
Fix function mentioned in docs: Use
get_stylesheet_directory_uri()
for baseUrl settinghttps://developer.wordpress.org/reference/functions/get_stylesheet_directory_uri/
(Thanks for providing as open source! 👍 👍 Used in https://github.com/mandrasch/ddev-wp-vite-demo)