[wp-trac] [WordPress Trac] #28786: wp_send_json silently fails on non UTF-8 strings
WordPress Trac
noreply at wordpress.org
Tue Oct 28 18:34:18 UTC 2014
#28786: wp_send_json silently fails on non UTF-8 strings
------------------------------+---------------------
Reporter: pento | Owner: pento
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.1
Component: Formatting | Version: 3.5
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+---------------------
Changes (by pento):
* owner: => pento
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"30055"]:
{{{
#!CommitTicketReference repository="" revision="30055"
Add `wp_json_encode()`, a wrapper for `json_encode()` that ensures
everything is converted to UTF-8.
Change all core calls from `json_encode()` to `wp_json_encode()`.
Fixes #28786.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28786#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list