if ( get_option('require_name_email') && !$user->ID ) {
if ( 6 > strlen($comment_author_email) || '' == $comment_author )
- wp_die( __('Error: please fill the required fields (name, email).') );
+ wp_die( __('<strong>ERROR</strong>: please fill the required fields (name, email).') );
elseif ( !is_email($comment_author_email))
- wp_die( __('Error: please enter a valid email address.') );
+ wp_die( __('<strong>ERROR</strong>: please enter a valid email address.') );
}
if ( '' == $comment_content )
- wp_die( __('Error: please type a comment.') );
+ wp_die( __('<strong>ERROR</strong>: please type a comment.') );
$comment_parent = isset($_POST['comment_parent']) ? absint($_POST['comment_parent']) : 0;
$location = apply_filters('comment_post_redirect', $location, $comment);
wp_redirect($location);
-
+exit;
?>