Changeset 1739

Show
Ignore:
Timestamp:
10/04/04 08:54:04 (4 years ago)
Author:
saxmatt
Message:

Move plugin call to allow plugin authors to get in before notification is sent out.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-comments-post.php

    r1603 r1739  
    7878"); 
    7979 
    80 $comment_ID = $wpdb->get_var('SELECT last_insert_id()'); 
     80$comment_ID = $wpdb->insert_id; 
     81 
     82do_action('comment_post', $comment_ID); 
    8183 
    8284if (!$approved) { 
     
    8789    wp_notify_postauthor($comment_ID, 'comment'); 
    8890} 
    89  
    90 do_action('comment_post', $comment_ID); 
    9191 
    9292setcookie('comment_author_' . $cookiehash, stripslashes($author), time() + 30000000, COOKIEPATH);