[wp-trac] [WordPress Trac] #37856: Prepare data before sanity check in wp_json_encode()

WordPress Trac noreply at wordpress.org
Sun Aug 28 09:39:58 UTC 2016


#37856: Prepare data before sanity check in wp_json_encode()
--------------------------+-----------------------------
 Reporter:  swissspidy    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.6
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Splitting this out of #37731 as a followup to #36358.

 In `wp_json_encode()`, the data is being prepared for JSON sanitization
 for `_wp_json_prepare_data()`. Later on, the call to
 `_wp_json_sanity_check()` doesn't use the prepared data but the raw data
 instead.

 I don't see why this was done that way in #36358, so I'd love to hear what
 @rmccue has to say about it.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37856>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list