Changeset 3984 for trunk/wp-comments-post.php
- Timestamp:
- 07/05/2006 08:34:19 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-comments-post.php
r3577 r3984 13 13 } elseif ( 'closed' == $status->comment_status ) { 14 14 do_action('comment_closed', $comment_post_ID); 15 die( __('Sorry, comments are closed for this item.') );15 wp_die( __('Sorry, comments are closed for this item.') ); 16 16 } elseif ( 'draft' == $status->post_status ) { 17 17 do_action('comment_on_draft', $comment_post_ID); … … 32 32 else : 33 33 if ( get_option('comment_registration') ) 34 die( __('Sorry, you must be logged in to post a comment.') );34 wp_die( __('Sorry, you must be logged in to post a comment.') ); 35 35 endif; 36 36 … … 39 39 if ( get_settings('require_name_email') && !$user->ID ) { 40 40 if ( 6 > strlen($comment_author_email) || '' == $comment_author ) 41 die( __('Error: please fill the required fields (name, email).') );41 wp_die( __('Error: please fill the required fields (name, email).') ); 42 42 elseif ( !is_email($comment_author_email)) 43 die( __('Error: please enter a valid email address.') );43 wp_die( __('Error: please enter a valid email address.') ); 44 44 } 45 45 46 46 if ( '' == $comment_content ) 47 die( __('Error: please type a comment.') );47 wp_die( __('Error: please type a comment.') ); 48 48 49 49 $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type', 'user_ID');
Note: See TracChangeset
for help on using the changeset viewer.