[wp-trac] [WordPress Trac] #41998: REST API: Add debug mode
WordPress Trac
noreply at wordpress.org
Sun Sep 11 22:00:31 UTC 2022
#41998: REST API: Add debug mode
--------------------------+--------------------------------
Reporter: Viper007Bond | Owner: TimothyBlynJacobs
Type: enhancement | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.4
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: rest-api
--------------------------+--------------------------------
Changes (by kadamwhite):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"54127" 54127]:
{{{
#!CommitTicketReference repository="" revision="54127"
REST API: Introduce _pretty query parameter to opt in to
JSON_PRETTY_PRINT.
Add support for a "_pretty" meta-parameter on all REST controllers which
instructs WordPress to return pretty-printed JSON, for better readability
when inspecting endpoint responses in curl output or certain developer
tools.
Introduce the "rest_json_encode_options" filter to permit site owners to
control this behavior globally.
Props Viper007Bond, TimothyBlynJacobs, chrisguitarguy, johnbillion,
swissspidy, adamsilverstein, danielbachhuber, rmccue.
Fixes #41998.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41998#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list