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:
parent
7879bcaee5
commit
90a0e069e9
|
@ -682,6 +682,8 @@ case 'replyto-comment' :
|
||||||
case 'edit-comment' :
|
case 'edit-comment' :
|
||||||
check_ajax_referer( 'replyto-comment', '_ajax_nonce-replyto-comment' );
|
check_ajax_referer( 'replyto-comment', '_ajax_nonce-replyto-comment' );
|
||||||
|
|
||||||
|
set_current_screen( 'edit-comments' );
|
||||||
|
|
||||||
$comment_post_ID = (int) $_POST['comment_post_ID'];
|
$comment_post_ID = (int) $_POST['comment_post_ID'];
|
||||||
if ( ! current_user_can( 'edit_post', $comment_post_ID ) )
|
if ( ! current_user_can( 'edit_post', $comment_post_ID ) )
|
||||||
die('-1');
|
die('-1');
|
||||||
|
|
Loading…
Reference in New Issue