WordPress.org

Make WordPress Core

Ticket #37418: local_history1.patch

File local_history1.patch, 838 bytes (added by hogetan, 5 years ago)

Suppress Notice.

  • upgrade.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    22212221                        if (array_key_exists(strtolower($tablefield->Field), $cfields)) {
    22222222
    22232223                                // Get the field type from the query.
    2224                                 preg_match("|".$tablefield->Field." ([^ ]*( unsigned)?)|i", $cfields[strtolower($tablefield->Field)], $matches);
    2225                                 $fieldtype = $matches[1];
     2224                                if ( preg_match("|".$tablefield->Field." ([^ ]*( unsigned)?)|i", $cfields[strtolower($tablefield->Field)], $matches) ) {
     2225                                        $fieldtype = $matches[1];
     2226                                } else {
     2227                                        $fieldtype = null;
     2228                                }
    22262229
    22272230                                // Is actual field type different from the field type in query?
    22282231                                if ($tablefield->Type != $fieldtype) {