Discard replies to comments on a trashed post, props nacin, fixes #11401

git-svn-id: http://svn.automattic.com/wordpress/trunk@12394 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-12-14 03:03:58 +00:00
parent 1c55a42fa0
commit 6c4c879f50
1 changed files with 1 additions and 1 deletions

View File

@ -708,7 +708,7 @@ case 'replyto-comment' :
if ( empty($status) )
die('1');
elseif ( in_array($status, array('draft', 'pending') ) )
elseif ( in_array($status, array('draft', 'pending', 'trash') ) )
die( __('Error: you are replying to a comment on a draft post.') );
$user = wp_get_current_user();