Make WordPress Core

Ticket #59481: 59481.diff

File 59481.diff, 838 bytes (added by leewillis77, 4 months ago)

patch

  • wp-admin/includes/upgrade.php

    diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php
    index e206152e84..6a283d98e3 100644
    a b function dbDelta( $queries = '', $execute = true ) { // phpcs:ignore WordPress.N 
    32013201                                $fieldtype_base = strtok( $fieldtype_without_parentheses, ' ' );
    32023202
    32033203                                // Is actual field type different from the field type in query?
    3204                                 if ( $tablefield->Type !== $fieldtype ) {
     3204                                if ( $tablefield->Type !== $fieldtype_without_parentheses ) {
    32053205                                        $do_change = true;
    32063206                                        if ( in_array( $fieldtype_lowercased, $text_fields, true ) && in_array( $tablefield_type_lowercased, $text_fields, true ) ) {
    32073207                                                if ( array_search( $fieldtype_lowercased, $text_fields, true ) < array_search( $tablefield_type_lowercased, $text_fields, true ) ) {