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:
parent
7c0015e43e
commit
90b83e8f8a
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user