Changeset 1854 for trunk/wp-comments-post.php
- Timestamp:
- 11/15/2004 06:20:28 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-comments-post.php
r1781 r1854 36 36 $user_ip = $_SERVER['REMOTE_ADDR']; 37 37 38 if ( 'closed' == $wpdb->get_var("SELECT comment_status FROM $wpdb->posts WHERE ID = '$comment_post_ID'") ) 38 $post_status = $wpdb->get_var("SELECT comment_status FROM $wpdb->posts WHERE ID = '$comment_post_ID'"); 39 40 if ( empty($post_status) ) { 41 // Post does not exist. Someone is trolling. Die silently. 42 // (Perhaps offer pluggable rebukes? Long delays, etc.) 43 die(); 44 } else if ( 'closed' == $post_status ) { 39 45 die( __('Sorry, comments are closed for this item.') ); 46 } 40 47 41 48 if ( get_settings('require_name_email') && ('' == $email || '' == $author) )
Note: See TracChangeset
for help on using the changeset viewer.