[wp-trac] [WordPress Trac] #55600: Can't save registered post meta field of type string that equals registered default value via REST API
WordPress Trac
noreply at wordpress.org
Fri Jun 14 07:40:57 UTC 2024
#55600: Can't save registered post meta field of type string that equals registered
default value via REST API
--------------------------------------+------------------------------
Reporter: kraftner | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Options, Meta APIs | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: rest-api
--------------------------------------+------------------------------
Comment (by dmsnell):
In my opinion it's not necessary to fix the behavior for single values
''and'' for multiple values for the patch to be valuable. if we're having
a difficult time getting the test to run for multi-value updates, let's
focus on solving the single-value case and then follow-up with a fix for
the multi-value cases.
@kraftner - I know that you mentioned confirming a full rubric of expected
behaviors. For posterity sake, could you add that here? A simple table
showing the ways that the direct PHP function and the REST API behave
differently could quickly summarize the core of this issue, as well as
clarify what a fix ''ought'' to do.
Also, please reach out any time for help pushing this forward. I don't
want to let this linger in limbo, but I can get distracted easily, so it's
not a bother for you to ping me here or in Slack.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55600#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list