Be more consistent with ERROR: messages. fixes #15887

git-svn-id: https://develop.svn.wordpress.org/trunk@18841 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith
2011-09-30 17:18:35 +00:00
parent 028a3ee8ec
commit a3bdf19206
8 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -640,7 +640,7 @@ case 'replyto-comment' :
if ( empty($status) )
die('1');
elseif ( in_array($status, array('draft', 'pending', 'trash') ) )
die( __('Error: you are replying to a comment on a draft post.') );
die( __('ERROR: you are replying to a comment on a draft post.') );
$user = wp_get_current_user();
if ( $user->ID ) {
@@ -659,7 +659,7 @@ case 'replyto-comment' :
}
if ( '' == $comment_content )
die( __('Error: please type a comment.') );
die( __('ERROR: please type a comment.') );
$comment_parent = absint($_POST['comment_ID']);
$comment_auto_approved = false;
@@ -721,7 +721,7 @@ case 'edit-comment' :
die('-1');
if ( '' == $_POST['content'] )
die( __('Error: please type a comment.') );
die( __('ERROR: please type a comment.') );
$_POST['comment_status'] = $_POST['status'];
edit_comment();