[wp-trac] [WordPress Trac] #12400: Add a wp_loaded hook, an ob_start hook, and an front end ajax hook

WordPress Trac wp-trac at lists.automattic.com
Sun Feb 28 03:40:10 UTC 2010


#12400: Add a wp_loaded hook, an ob_start hook, and an front end ajax hook
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:                        
     Type:  feature request    |      Status:  new                   
 Priority:  normal             |   Milestone:  3.0                   
Component:  General            |     Version:  3.0                   
 Severity:  normal             |    Keywords:  dev-feedback has-patch
-------------------------------+--------------------------------------------

Comment(by dd32):

 > attachment wp-ajax.php  added

 Thats my version of a ajax handler, Things to note:
  * 404 on empty action, or non-handled action
  * Passes ''unslashed'' data as the $args
   * This is different from the rest of the user-data functions that pass
 slashed data.
  * uses the {{{ajax_<action name>}}} style for the hook name
  * Does not return a 0 or -1 as the admin handler does (Thats for the wp-
 ajax classes, which i doubt will be used by 99% of those who use this
 file)
  * Sets the default content-type/charset, but plugins should be able to
 override that if they're printing XML or JSON or otherwise.

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


More information about the wp-trac mailing list