[request] wpjson.settings
callback fn
required to return passed theme
instance; missing generated theme.json
parts otherwise
#2168
Labels
Agreement
Describe the issue
The
wpjson.settings
callback function has to return thetheme
instance which it got passed as argument,as otherwise parts of generated
theme.json
will be missing, and not just the parts added after the callback function.Expected Behavior
No missing parts of generated
theme.json
, even if the callback function does not return thetheme
instance.Actual Behavior
Parts of
theme.json
is missing when the callback function does not return thetheme
instance:Steps To Reproduce
bud
configuration.bud
build. (Optional: Keep/copy generatedtheme.json
for later comparison with a newly generatedtheme.json
).bud
config awpjson.settings
invocation with a callback function that does not return thetheme
instance that was passed to it as argument:bud
build, note that parts of newly generatedtheme.json
are missing now.version
6.9.1
Logs
Configuration
Relevant .budfiles
No response
The text was updated successfully, but these errors were encountered: