Changeset 12284 for trunk/wp-includes/comment.php
- Timestamp:
- 11/26/2009 11:29:54 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r12267 r12284 1138 1138 $commentdata['user_id'] = $commentdata['user_ID'] = (int) $commentdata['user_id']; 1139 1139 1140 $commentdata['comment_parent'] = absint($commentdata['comment_parent']);1140 $commentdata['comment_parent'] = isset($commentdata['comment_parent']) ? absint($commentdata['comment_parent']) : 0; 1141 1141 $parent_status = ( 0 < $commentdata['comment_parent'] ) ? wp_get_comment_status($commentdata['comment_parent']) : ''; 1142 1142 $commentdata['comment_parent'] = ( 'approved' == $parent_status || 'unapproved' == $parent_status ) ? $commentdata['comment_parent'] : 0;
Note: See TracChangeset
for help on using the changeset viewer.