[wp-trac] [WordPress Trac] #15327: Strip down admin-ajax.php to be a bare bones ajax handler.

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 31 22:13:01 UTC 2012


#15327: Strip down admin-ajax.php to be a bare bones ajax handler.
------------------------------------------------+------------------------
 Reporter:  westi                               |       Owner:  kurtpayne
     Type:  enhancement                         |      Status:  closed
 Priority:  normal                              |   Milestone:  3.4
Component:  Administration                      |     Version:  3.1
 Severity:  normal                              |  Resolution:  fixed
 Keywords:  westi-likes has-patch dev-feedback  |
------------------------------------------------+------------------------

Comment (by nacin):

 In [19801]:
 {{{
 #!CommitTicketReference repository="" revision="19801"
 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.
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15327#comment:37>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list