[wp-trac] [WordPress Trac] #36358: Return of _wp_json_prepare_data() in wp_json_encode() should be used.
WordPress Trac
noreply at wordpress.org
Sun Apr 17 06:36:30 UTC 2016
#36358: Return of _wp_json_prepare_data() in wp_json_encode() should be used.
--------------------------------------------------+------------------------
Reporter: jrf | Owner: rmccue
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 4.5.1
Component: General | Version: 4.4
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests 4.6-early | Focuses:
--------------------------------------------------+------------------------
Comment (by swissspidy):
@jrf Yeah, but there's no test at all for `wp_json_encode()` showing the
usage of `_wp_json_prepare_data()`. That's why I was wondering.
Since `_wp_json_prepare_data()` was introduced in 4.4 as part of the REST
API infrastructure to support the JsonSerializable interface for PHP 5.2
and 5.3, this is unlikely to affect the majority of users.
That's why it doesn't really feel like 4.5.1 material to me, unless it
would also be fixed in 4.4.x. What about putting this in 4.6 only?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36358#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list