Make WordPress Core

Changeset 1739


Ignore:
Timestamp:
10/04/2004 08:54:04 AM (21 years ago)
Author:
saxmatt
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.