From 2774142c5a025b0a4984cd53991f89d6797a84b7 Mon Sep 17 00:00:00 2001 From: michelvaldrighi Date: Tue, 1 Feb 2005 11:03:45 +0000 Subject: [PATCH] Fix for bug #559, capitalisation issue git-svn-id: http://svn.automattic.com/wordpress/trunk@2194 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/post.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/wp-admin/post.php b/wp-admin/post.php index 439513d0c..456fbbe06 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.'); }