Make WordPress Core


Ignore:
Timestamp:
04/17/2020 07:33:52 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Comments: Use comment instead of an empty string for the comment_type DB field value in comments table.

This is the first step to bring support for custom comment types into WordPress.

Add a scheduled upgrade routine to update the type value for existing comments, in batches of 100 at a time.

Props imath, aaroncampbell, jeremyfelt, dshanske.
Fixes #49236.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/comment-submission.php

    r47122 r47597  
    743743                'comment_author_url'   => $user->user_url,
    744744                'comment_content'      => $data['comment'],
    745                 'comment_type'         => '',
     745                'comment_type'         => 'comment',
    746746                'comment_parent'       => '0',
    747747                'user_ID'              => $user->ID,
Note: See TracChangeset for help on using the changeset viewer.