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

WordPress Trac noreply at wordpress.org
Tue Oct 28 21:12:12 UTC 2014


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

Comment (by markjaquith):

 In [changeset:"30075"]:
 {{{
 #!CommitTicketReference repository="" revision="30075"
 Define `JSON_PRETTY_PRINT` so it can be used with `wp_json_encode()`

 * `JSON_PRETTY_PRINT` was introduced in PHP 5.4
 * Now you can use it with lower PHP versions, without a notice

 fixes #30139
 see #28786
 }}}

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


More information about the wp-trac mailing list