[wp-trac] [WordPress Trac] #48426: Can't update meta via the REST API if an identical value for a field you don't have permission to update is included

WordPress Trac noreply at wordpress.org
Mon Oct 26 18:06:57 UTC 2020


#48426: Can't update meta via the REST API if an identical value for a field you
don't have permission to update is included
--------------------------------+-----------------------------
 Reporter:  johnstonphilip      |       Owner:  (none)
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Future Release
Component:  Options, Meta APIs  |     Version:  4.7
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:  rest-api
--------------------------------+-----------------------------

Comment (by johnstonphilip):

 @TimothyBlynJacobs Thanks for the message! Unfortunately I am still stuck
 on this part:

   I looked at doing a comparison check prior to saving for the saved value
 vs the new value, but because the saved value is always a string when
 coming from the database, you can't do strict checking, which could be
 problematic. So I am not sure what the fix needs to be here.

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


More information about the wp-trac mailing list