• Resolved Udit Desai

    (@desaiuditd)


    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 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.

Viewing 1 replies (of 1 total)
  • John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Thanks. Tracked in https://core.trac.ww.wp.xz.cn/ticket/30627

    We mark posts that have trac tickets as resolved for sanity. It lets mods and volunteers know we don’t have to jump in and find an issue. You should follow the discussion on trac. You can click the ‘Watch’ button on the trac ticket (it’s near the bottom) to get email alerts. If you need to log in, it’s the same ID/password as you use for the forums.

Viewing 1 replies (of 1 total)

The topic ‘Fails to update comment_type using wp_update_comment’ is closed to new replies.