[wp-trac] [WordPress Trac] #38926: REST API: Validate thumbnail ID in response

WordPress Trac noreply at wordpress.org
Thu Dec 1 16:39:57 UTC 2016


#38926: REST API: Validate thumbnail ID in response
--------------------------+-----------------------------
 Reporter:  iseulde       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  REST API      |     Version:  trunk
 Severity:  minor         |  Resolution:
 Keywords:  close         |     Focuses:
--------------------------+-----------------------------

Comment (by joehoyle):

 > Do we want to fix this at all?? This sounds like an example of "garbage
 in, garbage out" to me - and where my views differ from @joehoyle.

 I'm fine with Garbage In, Garbage Out too - I think generally we should
 try to stick to one of these principles. This can make validation harder
 though, what is there is a string in the `_thumbnail_id` field? Personally
 I don't think we should be so worried about those edgecases, but it's
 probably just worth us saying (if we do so think): The rest api will act
 weirdly and have issues if data that can technically be stored in an
 "incorrect" way.

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


More information about the wp-trac mailing list