WordPress.org

Plugin Directory

Changeset 419805


Ignore:
Timestamp:
08/05/11 15:41:29 (3 years ago)
Author:
lessbloat
Message:

Changed comment_post_ID var to comment_ID

File:
1 edited

Legend:

Unmodified
Added
Removed
  • akismet/trunk/admin.php

    r419764 r419805  
    717717        global $wpdb; 
    718718        $comment = get_comment( intval($_POST['id']), ARRAY_A ); 
    719         if (current_user_can('edit_comment', $comment['comment_post_ID'])) { 
     719        if (current_user_can('edit_comment', $comment['comment_ID'])) { 
    720720            $comment['comment_author_url'] = ''; 
    721721            print(wp_update_comment( $comment )); 
     
    731731        global $wpdb; 
    732732        $comment = get_comment( intval($_POST['id']), ARRAY_A ); 
    733         if (current_user_can('edit_comment', $comment['comment_post_ID'])) { 
     733        if (current_user_can('edit_comment', $comment['comment_ID'])) { 
    734734            $comment['comment_author_url'] = esc_url($_POST['url']); 
    735735            print(wp_update_comment( $comment )); 
Note: See TracChangeset for help on using the changeset viewer.