[wp-trac] [WordPress Trac] #42069: Saving metadata fails (randomly) if equal value already exists

WordPress Trac noreply at wordpress.org
Tue Aug 7 09:37:34 UTC 2018


#42069: Saving metadata fails (randomly) if equal value already exists
-------------------------------------+-----------------------
 Reporter:  JVel                     |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  5.0
Component:  REST API                 |     Version:  4.8.2
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  rest-api
-------------------------------------+-----------------------

Comment (by MattGeri):

 @dcavins Thanks for the insight. The unit tests provided by @flixos90 do
 not seem to cover that use case (at least on my local) as they all passed
 with my patch. If they also pass your side, could you add a test case
 which would cover the issue?

 Relaxing the strictness would not be an option as it's against the code
 standards. Typecasting as string seems to be viable but we should provide
 a failing unit test first.

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


More information about the wp-trac mailing list