[wp-trac] [WordPress Trac] #49236: Use 'comment' instead of '' for the comment_type db field for comments

WordPress Trac noreply at wordpress.org
Fri Aug 7 14:27:55 UTC 2020


#49236: Use 'comment' instead of '' for the comment_type db field for comments
-------------------------------------------------+-------------------------
 Reporter:  imath                                |       Owner:
                                                 |  SergeyBiryukov
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  5.5
Component:  Comments                             |     Version:  5.4
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch early commit has-dev-note  |     Focuses:
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"48748" 48748]:
 {{{
 #!CommitTicketReference repository="" revision="48748"
 Comments: Update comment cache in the upgrade routine for changing the
 `comment_type` DB field value in comments table.

 This ensures that comment object cache is cleared after changing the
 comment type to `comment` instead of an empty string.

 Add a unit test for `_wp_batch_update_comment_type()`.

 Follow-up to [47597], [47626], [48225], [48227].

 Props imath, westonruter.
 Fixes #49236.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49236#comment:30>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list