Set current screen for comment quick-edit. Props batmoo. See #14579

git-svn-id: https://develop.svn.wordpress.org/trunk@16483 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu 2010-11-19 09:34:21 +00:00
parent 90de63b3ad
commit e6e9ea6c26

View File

@ -682,6 +682,8 @@ case 'replyto-comment' :
case 'edit-comment' :
check_ajax_referer( 'replyto-comment', '_ajax_nonce-replyto-comment' );
set_current_screen( 'edit-comments' );
$comment_post_ID = (int) $_POST['comment_post_ID'];
if ( ! current_user_can( 'edit_post', $comment_post_ID ) )
die('-1');