[wp-trac] [WordPress Trac] #30139: Allow JSON_PRETTY_PRINT to be used without notice on PHP < 5.4
WordPress Trac
noreply at wordpress.org
Tue Oct 28 21:12:13 UTC 2014
#30139: Allow JSON_PRETTY_PRINT to be used without notice on PHP < 5.4
--------------------------+--------------------------
Reporter: markjaquith | Owner: markjaquith
Type: defect (bug) | Status: closed
Priority: low | Milestone: 4.1
Component: General | Version: trunk
Severity: minor | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+--------------------------
Changes (by markjaquith):
* status: accepted => closed
* resolution: => fixed
Comment:
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/30139#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list