Automattic / Automattic/custom-metadata
fields with "multiple" enabled save an empty value when nothing set
Open
- Dominant language
- PHP
- Stars
- 190
- Forks
- 46
- Avg merge
- 46m
- Merged PRs (30d)
- 15
Description
When a field is set to "multiple" and nothing gets set, an empty meta value gets inserted. Instead, I think no meta value should be inserted.
Contributor guide
Research direction
Start by reproducing the behavior for a custom field with “multiple” enabled while leaving it unset. Trace where saving handles the empty value, then verify that no meta value is inserted in that case while populated multiple fields continue to save correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100