[wp-trac] [WordPress Trac] #11062: Front-end ajax handler

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 2 22:24:12 UTC 2009


#11062: Front-end ajax handler
-------------------------+--------------------------------------------------
 Reporter:  prettyboymp  |       Owner:            
     Type:  enhancement  |      Status:  new       
 Priority:  normal       |   Milestone:  Unassigned
Component:  General      |     Version:  2.9       
 Severity:  normal       |    Keywords:            
-------------------------+--------------------------------------------------

Comment(by prettyboymp):

 Replying to [comment:2 filosofo]:
 > I just post Ajax data to the current WP page, and I attach a callback
 method to the "init" action, and when the posted value of my Ajax is set,
 it does whatever needs to be done, after the requisite verification (user-
 permission check, nonce check, etc.).
 >
 I've gone this route recently, but felt kind of dirty always having the
 init hook called to check if certain post variables were submitted.  I
 realize its very little overhead in the scheme of things, but it just felt
 out of place.

 While we're on the subject, is there a reason we don't accept $_REQUEST
 action for nopriv ajax?  That way GET could be used for improved caching
 between users where needed.

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


More information about the wp-trac mailing list