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

WordPress Trac noreply at wordpress.org
Mon Aug 26 10:34:53 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:  has-patch has-unit-tests  |     Focuses:  rest-api
--------------------------------------+--------------------------------

Comment (by caercam):

 By the way, a quick and dirty fix for this until it's released is to use
 the `update_{$meta_type}_metadata` filter to short-circuit
 `update_metadata()` before it compares the identical values and return
 `true` instead to allow the request to proceed as expected.

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


More information about the wp-trac mailing list