mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 18:54:29 +00:00
Fix notices and phpdoc, props hakre, fixes #10758
git-svn-id: https://develop.svn.wordpress.org/trunk@12284 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1137,7 +1137,7 @@ function wp_new_comment( $commentdata ) {
|
||||
else
|
||||
$commentdata['user_id'] = $commentdata['user_ID'] = (int) $commentdata['user_id'];
|
||||
|
||||
$commentdata['comment_parent'] = absint($commentdata['comment_parent']);
|
||||
$commentdata['comment_parent'] = isset($commentdata['comment_parent']) ? absint($commentdata['comment_parent']) : 0;
|
||||
$parent_status = ( 0 < $commentdata['comment_parent'] ) ? wp_get_comment_status($commentdata['comment_parent']) : '';
|
||||
$commentdata['comment_parent'] = ( 'approved' == $parent_status || 'unapproved' == $parent_status ) ? $commentdata['comment_parent'] : 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user