[wp-trac] [WordPress Trac] #52793: REST API: Sending empty array for single = false meta returns a 500 error if the there is not meta do delete

WordPress Trac noreply at wordpress.org
Fri Mar 12 15:46:16 UTC 2021


#52793: REST API: Sending empty array for single = false meta returns a 500 error
if the there is not meta do delete
---------------------------+----------------------------------------
 Reporter:  goaroundagain  |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  REST API       |    Version:  5.7
 Severity:  normal         |   Keywords:  has-unit-tests needs-patch
  Focuses:  rest-api       |
---------------------------+----------------------------------------
 If the Block Editor sends with WordPress 5.7 an empty array for single =
 false meta and there is no meta to delete, it returns a 500 error.

 The default behaver of the Block Editor is to send an empty array for
 unset single = false meta.

 This bug was introduced through this fix:
 https://core.trac.wordpress.org/ticket/50790

 I will provide an updated unit test

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52793>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list