[wp-cvs] wordpress wp-comments-post.php,1.14,1.15
Matthew Mullenweg
saxmatt at users.sourceforge.net
Mon Oct 4 08:54:06 UTC 2004
Update of /cvsroot/cafelog/wordpress
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3248
Modified Files:
wp-comments-post.php
Log Message:
Move plugin call to allow plugin authors to get in before notification is sent out.
Index: wp-comments-post.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-comments-post.php,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** wp-comments-post.php 5 Sep 2004 01:50:38 -0000 1.14
--- wp-comments-post.php 4 Oct 2004 08:54:04 -0000 1.15
***************
*** 78,82 ****
");
! $comment_ID = $wpdb->get_var('SELECT last_insert_id()');
if (!$approved) {
--- 78,84 ----
");
! $comment_ID = $wpdb->insert_id;
!
! do_action('comment_post', $comment_ID);
if (!$approved) {
***************
*** 88,93 ****
}
- do_action('comment_post', $comment_ID);
-
setcookie('comment_author_' . $cookiehash, stripslashes($author), time() + 30000000, COOKIEPATH);
setcookie('comment_author_email_' . $cookiehash, stripslashes($email), time() + 30000000, COOKIEPATH);
--- 90,93 ----
More information about the cvs
mailing list