[wp-trac] [WordPress Trac] #60618: REST API: Meta update fails if unrelated unchanged field is a multi-item array
WordPress Trac
noreply at wordpress.org
Fri Jul 26 15:35:43 UTC 2024
#60618: REST API: Meta update fails if unrelated unchanged field is a multi-item
array
--------------------------+------------------------------
Reporter: kadamwhite | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.7
Severity: normal | Resolution:
Keywords: | Focuses: rest-api
--------------------------+------------------------------
Comment (by antonvlasenko):
== Reproduction Report
This report validates that the issue can be reproduced.
=== Environment
- WordPress: 6.6
- PHP: 7.4.33
- Server: Apache/2.4.58 (Unix) PHP/7.4.33
- Database: mysqli (Server: 5.7.42 / Client: mysqlnd 7.4.33)
- Browser: Safari 17.5 (macOS)
- Theme: Twenty Twenty-Four 1.0
- MU-Plugins: None activated
=== Actual Results
- ✅ When attempting to update a post meta value via the REST API for a
meta key with multiple existing database entries and the REST meta field
defined as single, the API returns a 500 HTTP error if the value already
exists in the database.
=== Additional Notes
The issue is consistent with the reporter's description.
=== Supplemental Artifacts
[[Image(https://cldup.com/ERoxepyXr2.png)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60618#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list