Automattic / Automattic/custom-metadata

fields with "multiple" enabled save an empty value when nothing set

Open
#119 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.