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:
parent
1c55a42fa0
commit
6c4c879f50
|
@ -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