[wp-trac] [WordPress Trac] #29435: wp_send_json() & co. should support json_encode()'s optional arguments
WordPress Trac
noreply at wordpress.org
Sat Aug 30 04:04:57 UTC 2014
#29435: wp_send_json() & co. should support json_encode()'s optional arguments
--------------------------+-----------------------------
Reporter: Viper007Bond | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Gallery | Version: 3.9.2
Severity: normal | Keywords: has-patch
Focuses: |
--------------------------+-----------------------------
For debugging, I want my `wp_send_json_success()` call to output pretty,
human readable JSON. You can do this by passing `JSON_PRETTY_PRINT` as the
second parameter to `json_encode()`.
`wp_send_json()` and the higher level functions that call it should
support these optional arguments.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29435>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list