Comments: Update DB version number used to trigger the upgrade routine for changing the `comment_type` DB field value in comments table.

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

Props desrosj.
See #49236.
Built from https://develop.svn.wordpress.org/trunk@48751


git-svn-id: http://core.svn.wordpress.org/trunk@48513 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-08-07 16:32:03 +00:00
parent 6b5e748dee
commit 961f455a00
2 changed files with 7 additions and 5 deletions

View File

@ -2174,9 +2174,6 @@ function upgrade_550() {
global $wp_current_db_version;
if ( $wp_current_db_version < 48121 ) {
update_option( 'finished_updating_comment_type', 0 );
wp_schedule_single_event( time() + ( 1 * MINUTE_IN_SECONDS ), 'wp_update_comment_type_batch' );
$comment_previously_approved = get_option( 'comment_whitelist', '' );
update_option( 'comment_previously_approved', $comment_previously_approved );
delete_option( 'comment_whitelist' );
@ -2198,6 +2195,11 @@ function upgrade_550() {
delete_option( 'blacklist_keys' );
delete_option( 'blocklist_keys' );
}
if ( $wp_current_db_version < 48748 ) {
update_option( 'finished_updating_comment_type', 0 );
wp_schedule_single_event( time() + ( 1 * MINUTE_IN_SECONDS ), 'wp_update_comment_type_batch' );
}
}
/**

View File

@ -13,14 +13,14 @@
*
* @global string $wp_version
*/
$wp_version = '5.6-alpha-48750';
$wp_version = '5.6-alpha-48751';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
*
* @global int $wp_db_version
*/
$wp_db_version = 48575;
$wp_db_version = 48748;
/**
* Holds the TinyMCE version.