setSiteOptions: Serialize array inputs #1252
Labels
Good First Issue
Good for newcomers
[Package][@wp-playground] Blueprints
[Type] Developer Experience
[Type] Enhancement
New feature or request
Milestone
Let's serialize Object and Array values in
setSiteOptions
step.I just got a question about disabling WooCommerce onboarding. This Blueprint did not work:
This one, however, works:
It never makes sense to string-cast the value and write
[Object object]
– therefore let's automatically PHP serialize anything that isn't a string, number, or a boolean.The text was updated successfully, but these errors were encountered: