[wp-trac] [WordPress Trac] #38200: Store a `comment_type` for all Comments, not just custom comment types
WordPress Trac
noreply at wordpress.org
Fri Sep 30 20:18:22 UTC 2016
#38200: Store a `comment_type` for all Comments, not just custom comment types
-------------------------+-----------------------------
Reporter: rachelbaker | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version:
Severity: normal | Keywords: needs-patch
Focuses: |
-------------------------+-----------------------------
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 `''`.
{{{
#!mysql
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38200>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list