[wp-trac] [WordPress Trac] #33776: Remove json_encode/json_decode and Services_JSON compat
WordPress Trac
noreply at wordpress.org
Wed Sep 9 02:21:21 UTC 2015
#33776: Remove json_encode/json_decode and Services_JSON compat
--------------------------------+-------------------------
Reporter: Rahe | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: External Libraries | Version: trunk
Severity: normal | Resolution: maybelater
Keywords: | Focuses:
--------------------------------+-------------------------
Comment (by dd32):
You do not need to do anything special. The compat library is only
included if your PHP doesn't have native support for the JSON extension.
For maximum compatibility, you should always use `wp_json_encode()`
however to work around PHP bugs and shortcomings.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33776#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list