[wp-trac] [WordPress Trac] #41998: REST API: Add debug mode
WordPress Trac
noreply at wordpress.org
Tue Sep 26 22:25:32 UTC 2017
#41998: REST API: Add debug mode
--------------------------+-----------------------------
Reporter: Viper007Bond | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.8.2
Severity: normal | Keywords: has-patch
Focuses: rest-api |
--------------------------+-----------------------------
It'd be nice if I could toggle on `JSON_PRETTY_PRINT` for the REST API for
use in development, just to make life easier. A new constant such as
`WP_DEBUG_REST_API` that enables this could be useful that could do other
things in the future.
Attached is an example implementation.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41998>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list