Make WordPress Core

Ticket #50413: 50413.4.diff

File 50413.4.diff, 1.3 KB (added by desrosj, 19 months ago)
  • src/wp-admin/includes/upgrade.php

     
    21662166 * @since 5.5.0
    21672167 */
    21682168function upgrade_550() {
     2169        global $wp_current_db_version;
     2170
    21692171        update_option( 'finished_updating_comment_type', 0 );
    21702172        wp_schedule_single_event( time() + ( 1 * MINUTE_IN_SECONDS ), 'wp_update_comment_type_batch' );
    21712173
    2172         // Use more clear and inclusive language.
    2173         $blocklist = get_option( 'blacklist_keys', '' );
    2174         update_option( 'blocklist_keys', $blocklist );
    2175         delete_option( 'blacklist_keys' );
    2176 
    2177         $comment_previously_approved = get_option( 'comment_whitelist', '' );
    2178         update_option( 'comment_previously_approved', $comment_previously_approved );
    2179         delete_option( 'comment_whitelist' );
     2174        if ( $wp_current_db_version < 48121 ) {
     2175                // Use more clear and inclusive language.
     2176                $blocklist = get_option( 'blacklist_keys', '' );
     2177                update_option( 'blocklist_keys', $blocklist );
     2178                delete_option( 'blacklist_keys' );
     2179
     2180                $comment_previously_approved = get_option( 'comment_whitelist', '' );
     2181                update_option( 'comment_previously_approved', $comment_previously_approved );
     2182                delete_option( 'comment_whitelist' );
     2183        }
    21802184}
    21812185
    21822186/**