WordPress.org

Make WordPress Core

Ticket #49236: 49236-db-version-update.diff

File 49236-db-version-update.diff, 1.3 KB (added by desrosj, 7 weeks ago)
  • src/wp-admin/includes/upgrade.php

     
    21742174        global $wp_current_db_version;
    21752175
    21762176        if ( $wp_current_db_version < 48121 ) {
    2177                 update_option( 'finished_updating_comment_type', 0 );
    2178                 wp_schedule_single_event( time() + ( 1 * MINUTE_IN_SECONDS ), 'wp_update_comment_type_batch' );
    2179 
    21802177                $comment_previously_approved = get_option( 'comment_whitelist', '' );
    21812178                update_option( 'comment_previously_approved', $comment_previously_approved );
    21822179                delete_option( 'comment_whitelist' );
     
    21982195                delete_option( 'blacklist_keys' );
    21992196                delete_option( 'blocklist_keys' );
    22002197        }
     2198
     2199        if ( $wp_current_db_version < 48748 ) {
     2200                update_option( 'finished_updating_comment_type', 0 );
     2201                wp_schedule_single_event( time() + ( 1 * MINUTE_IN_SECONDS ), 'wp_update_comment_type_batch' );
     2202        }
    22012203}
    22022204
    22032205/**
  • src/wp-includes/version.php

     
    2020 *
    2121 * @global int $wp_db_version
    2222 */
    23 $wp_db_version = 48575;
     23$wp_db_version = 48748;
    2424
    2525/**
    2626 * Holds the TinyMCE version.