Skip to content
Commit 4f338f29 authored by Andrew Nacin's avatar Andrew Nacin
Browse files

Re-purpose wp_die() for ajax responses.

 * Allows unit testing of core ajax actions.
 * wp_die() now has separate filters to choose a handler depending on the context (ajax, XML-RPC, else).
 * wp_die) in ajax context does not need to be called with a string. Conversion takes place before die().
props kurtpayne, see #15327.



git-svn-id: https://core.svn.wordpress.org/trunk@19801 1a063a9b-81f0-0310-95a4-ce76da25c4cd
parent 2aae652a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment