[wp-trac] [WordPress Trac] #4740: New action for
	wp_update_comment_count()
    WordPress Trac 
    wp-trac at lists.automattic.com
       
    Mon Aug 13 18:25:14 GMT 2007
    
    
  
#4740: New action for wp_update_comment_count()
----------------------------+-----------------------------------------------
 Reporter:  mdawaffe        |       Owner:  anonymous   
     Type:  enhancement     |      Status:  new         
 Priority:  normal          |   Milestone:  2.4 (future)
Component:  Administration  |     Version:  2.2.2       
 Severity:  normal          |    Keywords:  has-patch   
----------------------------+-----------------------------------------------
 wp_update_comment_count() calls the edit_post action (with different
 parameters than does the wp_insert_post() function), but this action
 doesn't receive information on how and if the count changed.
 Knowing this information would be useful to advanced caching systems,
 plugins that do fancy things with plugins/pings, and surely a buch of
 stuff I can't think of.
 I propose a new hook:
 {{{
 do_action('wp_update_comment_count', $post_id, $new_count, $old_count);
 }}}
 Attached makes that happen and gives the edi_post hook the same parameters
 as it has in wp_insert_post().
-- 
Ticket URL: <http://trac.wordpress.org/ticket/4740>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
    
    
More information about the wp-trac
mailing list