[wp-cvs] wordpress wp-comments-post.php,1.24,1.25

Ryan Boren rboren at users.sourceforge.net
Mon Dec 20 06:45:21 UTC 2004


Update of /cvsroot/cafelog/wordpress
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1474

Modified Files:
	wp-comments-post.php 
Log Message:
Fix required fields checking. Bug 576.  Hat tip:  bronski

Index: wp-comments-post.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-comments-post.php,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** wp-comments-post.php	19 Dec 2004 18:43:44 -0000	1.24
--- wp-comments-post.php	20 Dec 2004 06:45:19 -0000	1.25
***************
*** 23,27 ****
  $user_ip    = apply_filters('pre_comment_user_ip', $_SERVER['REMOTE_ADDR']);
  
! if ( get_settings('require_name_email') && ('' == $email || '' == $author) )
  	die( __('Error: please fill the required fields (name, email).') );
  
--- 23,27 ----
  $user_ip    = apply_filters('pre_comment_user_ip', $_SERVER['REMOTE_ADDR']);
  
! if ( get_settings('require_name_email') && ('' == $comment_author_email || '' == $comment_author) )
  	die( __('Error: please fill the required fields (name, email).') );
  




More information about the cvs mailing list