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

git-svn-id: https://develop.svn.wordpress.org/trunk@12394 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2009-12-14 03:03:58 +00:00
parent 7c0015e43e
commit 90b83e8f8a
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();