Changeset 2227 for trunk/wp-includes/functions-post.php
- Timestamp:
- 02/06/2005 03:40:08 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions-post.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions-post.php
r2225 r2227 390 390 global $wpdb; 391 391 392 do_action('wp_blacklist_check' );392 do_action('wp_blacklist_check', $author, $email, $url, $comment, $user_ip, $user_agent); 393 393 394 394 if ( preg_match_all('/&#(\d+);/', $comment . $author . $url, $chars) ) { … … 462 462 $time_newcomment = mysql2date('U', $now_gmt); 463 463 if ( ($time_newcomment - $time_lastcomment) < 15 ) { 464 do_action('comment_flood_trigger' );464 do_action('comment_flood_trigger', $time_lastcomment, $time_newcomment); 465 465 die( __('Sorry, you can only post a new comment once every 15 seconds. Slow down cowboy.') ); 466 466 } … … 483 483 484 484 $comment_id = $wpdb->insert_id; 485 do_action('comment_post', $comment_id );485 do_action('comment_post', $comment_id, $approved); 486 486 487 487 if ( 'spam' !== $approved ) { // If it's spam save it silently for later crunching
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)