Make WordPress Core

Changeset 2194


Ignore:
Timestamp:
02/01/2005 11:03:45 AM (20 years ago)
Author:
michelvaldrighi
Message:

Fix for bug #559, capitalisation issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/post.php

    r2179 r2194  
    433433    $commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'javascript:history.go(-1)'));
    434434
    435     if (!user_can_edit_post_comments($user_ID, $commentdata['comment_post_id'])) {
     435    if (!user_can_edit_post_comments($user_ID, $commentdata['comment_post_ID'])) {
    436436        die('You are not allowed to edit comments on this post.');
    437437    }
     
    455455    $commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));
    456456
    457     if (!user_can_delete_post_comments($user_ID, $commentdata['comment_post_id'])) {
     457    if (!user_can_delete_post_comments($user_ID, $commentdata['comment_post_ID'])) {
    458458        die('You are not allowed to delete comments on this post.');
    459459    }
     
    497497    $commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'post.php'));
    498498
    499     if (!user_can_delete_post_comments($user_ID, $commentdata['comment_post_id'])) {
     499    if (!user_can_delete_post_comments($user_ID, $commentdata['comment_post_ID'])) {
    500500        die('You are not allowed to edit comments on this post.');
    501501    }
     
    528528    $commentdata = get_commentdata($comment) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));
    529529
    530     if (!user_can_edit_post_comments($user_ID, $commentdata['comment_post_id'])) {
     530    if (!user_can_edit_post_comments($user_ID, $commentdata['comment_post_ID'])) {
    531531        die('You are not allowed to edit comments on this post, so you cannot disapprove this comment.');
    532532    }
     
    548548    $commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));
    549549
    550     if (!user_can_edit_post_comments($user_ID, $commentdata['comment_post_id'])) {
     550    if (!user_can_edit_post_comments($user_ID, $commentdata['comment_post_ID'])) {
    551551        die('You are not allowed to edit comments on this post, so you cannot approve this comment.');
    552552    }
     
    573573    $commentdata = get_commentdata($comment) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));
    574574
    575     if (!user_can_edit_post_comments($user_ID, $commentdata['comment_post_id'])) {
     575    if (!user_can_edit_post_comments($user_ID, $commentdata['comment_post_ID'])) {
    576576        die('You are not allowed to edit comments on this post, so you cannot approve this comment.');
    577577    }
Note: See TracChangeset for help on using the changeset viewer.