Fails to update comment_type using wp_update_comment
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Fails to update comment_type using wp_update_comment’ is closed to new replies.
The topic ‘Fails to update comment_type using wp_update_comment’ is closed to new replies.
(@desaiuditd)
11 years, 6 months ago
New changes for #12668 introduces
comment_typefor comments in WordPress.When we add a new comment using
wp_insert_comment,comment_typeparameter works perfectly. It inserts a new comment with given comment type.But when we tried to update the same comment with another comment type, the
wp_update_commentfunction ignores the comment_type parameter.Root Cause :
Line : 2237 in wp-includes/comment.php gathers all the valid keys for comment manipulations. Over there comment_type key is not added and further it will ignore the comment_type parameter while updating the comment.