Make WordPress Core


Ignore:
Timestamp:
11/26/2009 11:29:54 AM (14 years ago)
Author:
azaozz
Message:

Fix notices and phpdoc, props hakre, fixes #10758

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment.php

    r12267 r12284  
    11381138        $commentdata['user_id'] = $commentdata['user_ID'] = (int) $commentdata['user_id'];
    11391139
    1140     $commentdata['comment_parent'] = absint($commentdata['comment_parent']);
     1140    $commentdata['comment_parent'] = isset($commentdata['comment_parent']) ? absint($commentdata['comment_parent']) : 0;
    11411141    $parent_status = ( 0 < $commentdata['comment_parent'] ) ? wp_get_comment_status($commentdata['comment_parent']) : '';
    11421142    $commentdata['comment_parent'] = ( 'approved' == $parent_status || 'unapproved' == $parent_status ) ? $commentdata['comment_parent'] : 0;
Note: See TracChangeset for help on using the changeset viewer.