Opened 8 years ago
Closed 4 years ago
#38200 closed enhancement (duplicate)
Store a `comment_type` for all Comments, not just custom comment types
Reported by: | rachelbaker | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Comments | Keywords: | needs-patch comment-type |
Focuses: | rest-api | Cc: |
Description
Currently the comment_type
column for the comments table only stores a value (like trackback
or pingback
) when an irregular comment object is added. Standard comments are stored with a comment_type
of ''
.
SELECT * FROM `wp_comments` WHERE `comment_type` = ' ';
This isn't very intuitive, and does not follow the expectations set by the post_type
column in the posts table.
Changing to storing a comment_type
value for all comments is also pre-requisite for supporting custom comment types (see #35214).
This change will require an upgrade routine as well as some back-compat work.
Change History (6)
#2
@
8 years ago
- Keywords REST-API added
Related REST API issue: https://github.com/WP-API/WP-API/pull/2753
Note: See
TracTickets for help on using
tickets.
Would we store the value as
comment
? To follow the structure done bypost_type
beenpost
.