[wp-trac] [WordPress Trac] #30627: Fails to update comment type using wp_update_comment
WordPress Trac
noreply at wordpress.org
Mon Dec 8 10:05:43 UTC 2014
#30627: Fails to update comment type using wp_update_comment
--------------------------+-----------------------------
Reporter: desaiuditd | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
New changes for #12668 introduces `comment_type` for comments in
WordPress.
When we add a new comment using `wp_insert_comment`, `comment_type`
parameter 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_comment` function ingnores the `comment_type` parameter.
**Root Cause :**
Line : 2237 in `wp-includes/comment.php` gathers all the valid keys for
comment manipulations. Overthere `comment_type` key is not added and
further it will ignore the `comment_type` parameter while updating the
comment.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30627>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list