[wp-trac] [WordPress Trac] #34999: Calling wp_die() in a REST API request should return valid JSON
WordPress Trac
noreply at wordpress.org
Fri Dec 11 21:05:30 UTC 2015
#34999: Calling wp_die() in a REST API request should return valid JSON
-------------------------+------------------------------
Reporter: joehoyle | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.4
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+------------------------------
Comment (by danielbachhuber):
At this point, I'd ''much'' prefer we avoid `wp_die()` invocations REST
requests. I don't think we'll be able to create a robust `wp_die()`
handler that does what we need it to without compatibility concerns.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34999#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list