[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
Sat Jan 21 04:14:25 UTC 2012


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

Comment (by sivel):

 [attachment:15327.6.diff] shows a little different take on how to separate
 the GET and POST actions, by putting them in a single multidimensional
 associative array where the keys are the request method.

 This allows us to consolidate the 2 if statements into 1 for both GET and
 POST.

 And sorry for the description on the attachment, I obviously meant POST
 and not HEAD.  Muscle memory I guess...

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


More information about the wp-trac mailing list