[wp-trac] [WordPress Trac] #45933: WSODs protection returns incorrect content type for JSON Requests
WordPress Trac
noreply at wordpress.org
Thu Jan 17 23:52:52 UTC 2019
#45933: WSODs protection returns incorrect content type for JSON Requests
--------------------------------------------------+------------------------
Reporter: spacedmonkey | Owner: flixos90
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 5.1
Component: Bootstrap/Load | Version: trunk
Severity: normal | Resolution:
Keywords: servehappy needs-patch needs-testing | Focuses: multisite
--------------------------------------------------+------------------------
Comment (by spacedmonkey):
In [https://core.trac.wordpress.org/attachment/ticket/45933/45933.10.diff
45933.10.diff] I made `_wp_die_process_input` much more generic. Now it
just processes the values are returns an error.
The only thing that is different from the above idea, is I changed the
order of the params of the process function and added an array of errors,
as it was required.
This is feeling really close now. Feel happy we could merge this soon
after a little testing.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45933#comment:33>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list