[wp-trac] [WordPress Trac] #28786: wp_send_json silently fails on non UTF-8 strings

WordPress Trac noreply at wordpress.org
Tue Jul 15 05:34:19 UTC 2014


#28786: wp_send_json silently fails on non UTF-8 strings
------------------------------+------------------
 Reporter:  pento             |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  4.0
Component:  General           |     Version:  3.5
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+------------------

Comment (by pento):

 attachment:28786.7.diff

 - Adds `$options` and `$depth` parameters, to match `json_encode()`
 - A handful of performance improvements for `_wp_json_sanity_check()`
 - Tidied up `test_wp_json_encode()`
 - `test_wp_json_encode_depth()` added to make sure we obey `$depth`

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


More information about the wp-trac mailing list