-
Notifications
You must be signed in to change notification settings - Fork 322
Open
Labels
Good First IssueGood for newcomersGood for newcomers[Package][@wp-playground] Blueprints[Type] Developer Experience[Type] EnhancementNew feature or requestNew feature or request
Milestone
Description
Let's serialize Object and Array values in setSiteOptions
step.
I just got a question about disabling WooCommerce onboarding. This Blueprint did not work:
{
"step": "setSiteOptions",
"options": {
"woocommerce_onboarding_profile": {
"completed": true
}
}
}
This one, however, works:
{
"step": "setSiteOptions",
"options": {
"woocommerce_onboarding_profile": "a:1:{s:9:\"completed\";b:1;}"
}
},
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.
mujuonly and brandonpayton
Metadata
Metadata
Assignees
Labels
Good First IssueGood for newcomersGood for newcomers[Package][@wp-playground] Blueprints[Type] Developer Experience[Type] EnhancementNew feature or requestNew feature or request