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

git-svn-id: http://svn.automattic.com/wordpress/trunk@16483 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu 2010-11-19 09:34:21 +00:00
parent 7879bcaee5
commit 90a0e069e9
1 changed files with 2 additions and 0 deletions

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');