[wp-trac] [WordPress Trac] #47928: REST API: 'array' type meta not updating properly

WordPress Trac noreply at wordpress.org
Fri Aug 23 14:50:58 UTC 2019


#47928: REST API: 'array' type meta not updating properly
--------------------------+--------------------------------
 Reporter:  caercam       |       Owner:  TimothyBlynJacobs
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  5.3
Component:  REST API      |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  rest-api
--------------------------+--------------------------------

Comment (by TimothyBlynJacobs):

 Thanks much for reporting this @caercam!

 I've uploaded a patch with a failing test.

 Unfortunately, while removing the string cast does fix the bug, it causes
 the boolean sanitization test cases for
 `test_update_value_return_success_with_same_value` to fail. We might need
 to adjust based on whether the registered meta type is scalar.

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


More information about the wp-trac mailing list