summaryrefslogtreecommitdiffstats
path: root/wp-comments-post.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-07-06 10:41:20 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-07-06 10:41:20 +0000
commit779f0f4411b6467808ff053780c7c96ed0f9a571 (patch)
treefe52143d0597da054fc189e0c2058320d114cfc7 /wp-comments-post.php
parent78b9569980333f344366151f2dfc9e5b6412e175 (diff)
downloadwordpress-mu-779f0f4411b6467808ff053780c7c96ed0f9a571.tar.gz
wordpress-mu-779f0f4411b6467808ff053780c7c96ed0f9a571.tar.xz
wordpress-mu-779f0f4411b6467808ff053780c7c96ed0f9a571.zip
WP Merge
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@638 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-comments-post.php')
-rw-r--r--wp-comments-post.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/wp-comments-post.php b/wp-comments-post.php
index 2e561b2..f2954f2 100644
--- a/wp-comments-post.php
+++ b/wp-comments-post.php
@@ -12,7 +12,7 @@ if ( empty($status->comment_status) ) {
exit;
} elseif ( 'closed' == $status->comment_status ) {
do_action('comment_closed', $comment_post_ID);
- die( __('Sorry, comments are closed for this item.') );
+ wp_die( __('Sorry, comments are closed for this item.') );
} elseif ( 'draft' == $status->post_status ) {
do_action('comment_on_draft', $comment_post_ID);
exit;
@@ -31,20 +31,20 @@ if ( $user->ID ) :
$comment_author_url = $wpdb->escape($user->user_url);
else :
if ( get_option('comment_registration') )
- die( __('Sorry, you must be logged in to post a comment.') );
+ wp_die( __('Sorry, you must be logged in to post a comment.') );
endif;
$comment_type = '';
if ( get_settings('require_name_email') && !$user->ID ) {
if ( 6 > strlen($comment_author_email) || '' == $comment_author )
- die( __('Error: please fill the required fields (name, email).') );
+ wp_die( __('Error: please fill the required fields (name, email).') );
elseif ( !is_email($comment_author_email))
- die( __('Error: please enter a valid email address.') );
+ wp_die( __('Error: please enter a valid email address.') );
}
if ( '' == $comment_content )
- die( __('Error: please type a comment.') );
+ wp_die( __('Error: please type a comment.') );
$commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type', 'user_ID');