[wp-trac] [WordPress Trac] #52787: Empty array for non-single post meta breaks post save through REST API

WordPress Trac noreply at wordpress.org
Fri Mar 12 09:47:27 UTC 2021


#52787: Empty array for non-single post meta breaks post save through REST API
--------------------------+------------------------------
 Reporter:  BrechtVds     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  REST API      |     Version:  5.7
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  rest-api
--------------------------+------------------------------

Comment (by BrechtVds):

 Forgot to include the exact error message the REST API returns when trying
 to save:

 {{{
 {"code":"rest_meta_database_error","message":"Could not delete meta value
 from database.","data":{"key":"example-post-meta-field","status":500}}
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52787#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list