[wp-trac] [WordPress Trac] #2704: new hook request

WordPress Trac wp-trac at lists.automattic.com
Thu May 4 21:07:01 GMT 2006


#2704: new hook request
-------------------------+--------------------------------------------------
       Id:  2704         |      Status:  new                     
Component:  General      |    Modified:  Thu May  4 21:07:01 2006
 Severity:  enhancement  |   Milestone:                          
 Priority:  normal       |     Version:  2.0.2                   
    Owner:  anonymous    |    Reporter:  enricopulatzo           
-------------------------+--------------------------------------------------
 I'd like to see a new hook added for sending additional/custom headers for
 a regular pageview.  The change that would be made would altering the wp-
 includes/classes.php send_headers() function.


 {{{
         function send_headers() {
 <snip!>
                 } else if ( empty($this->query_vars['feed']) ) {
                         @header('Content-type: ' . get_option('html_type')
 . '; charset=' . get_option('blog_charset'));
 /* change is below: */
                         do_action('send_headers_pageview');
                 } else {
 <snip!>
 }}}

 I called it "send_headers_pageview" but as long as it gets picked up, it
 could be called "grandmothers_blue_hair" for all I care :)

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2704>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list