From 31ba3d15e073e52a209fbde2f5988b5ed25d7d88 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: https://develop.svn.wordpress.org/trunk@2194 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 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.'); }