diff --git a/wp-admin/post.php b/wp-admin/post.php index 439513d0cd..456fbbe06d 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -432,7 +432,7 @@ case 'editcomment': $comment = $_GET['comment']; $commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. Go back!'), 'javascript:history.go(-1)')); - if (!user_can_edit_post_comments($user_ID, $commentdata['comment_post_id'])) { + if (!user_can_edit_post_comments($user_ID, $commentdata['comment_post_ID'])) { die('You are not allowed to edit comments on this post.'); } @@ -454,7 +454,7 @@ case 'confirmdeletecomment': $p = $_GET['p']; $commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. Go back!'), 'edit.php')); - if (!user_can_delete_post_comments($user_ID, $commentdata['comment_post_id'])) { + if (!user_can_delete_post_comments($user_ID, $commentdata['comment_post_ID'])) { die('You are not allowed to delete comments on this post.'); } @@ -496,7 +496,7 @@ case 'deletecomment': $postdata = get_postdata($p) or die(sprintf(__('Oops, no post with this ID. Go back!'), 'edit.php')); $commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. Go back!'), 'post.php')); - if (!user_can_delete_post_comments($user_ID, $commentdata['comment_post_id'])) { + if (!user_can_delete_post_comments($user_ID, $commentdata['comment_post_ID'])) { die('You are not allowed to edit comments on this post.'); } @@ -527,7 +527,7 @@ case 'unapprovecomment': $commentdata = get_commentdata($comment) or die(sprintf(__('Oops, no comment with this ID. Go back!'), 'edit.php')); - if (!user_can_edit_post_comments($user_ID, $commentdata['comment_post_id'])) { + if (!user_can_edit_post_comments($user_ID, $commentdata['comment_post_ID'])) { die('You are not allowed to edit comments on this post, so you cannot disapprove this comment.'); } @@ -547,7 +547,7 @@ case 'mailapprovecomment': $commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. Go back!'), 'edit.php')); - if (!user_can_edit_post_comments($user_ID, $commentdata['comment_post_id'])) { + if (!user_can_edit_post_comments($user_ID, $commentdata['comment_post_ID'])) { die('You are not allowed to edit comments on this post, so you cannot approve this comment.'); } @@ -572,7 +572,7 @@ case 'approvecomment': } $commentdata = get_commentdata($comment) or die(sprintf(__('Oops, no comment with this ID. Go back!'), 'edit.php')); - if (!user_can_edit_post_comments($user_ID, $commentdata['comment_post_id'])) { + if (!user_can_edit_post_comments($user_ID, $commentdata['comment_post_ID'])) { die('You are not allowed to edit comments on this post, so you cannot approve this comment.'); }