[wp-trac] [WordPress Trac] #8420: Disable error redirects when in DOING_AJAX
WordPress Trac
wp-trac at lists.automattic.com
Wed Nov 24 08:52:13 UTC 2010
#8420: Disable error redirects when in DOING_AJAX
----------------------------+-----------------------------------------------
Reporter: janbrasna | Owner: kapeels
Type: enhancement | Status: accepted
Priority: low | Milestone: Future Release
Component: Administration | Version: 2.7
Severity: minor | Keywords: has-patch 2nd-opinion
----------------------------+-----------------------------------------------
Comment(by westi):
This is a good first pass at fixing this issue but I think it is worth
seeing if we can resolve this generically for all calls to wp_die duing
AJAX requests.
At the moment your message is very specific to the autosave scenario and
will not make much sense in other scenarios.
Please could you look at implementing a different wp_die handler for AJAX
requests - hint look at {{{wp_die}}} and {{{_default_wp_die_handler}}} to
make a generic solution and also look at changing the AJAX code so that it
recognises these error messages as responses
--
Ticket URL: <http://core.trac.wordpress.org/ticket/8420#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list