Make WordPress Core

Changeset 60784


Ignore:
Timestamp:
09/19/2025 01:06:58 PM (6 months ago)
Author:
SergeyBiryukov
Message:

Database: Ensure Non_unique index value is compared as a string in dbDelta().

Follow-up to [1575], [58994].

Props tsteel.
Fixes #64005.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/upgrade.php

    r60782 r60784  
    32833283                    'subpart'   => $tableindex->Sub_part,
    32843284                );
    3285                 $index_ary[ $keyname ]['unique']     = ( '0' === $tableindex->Non_unique ) ? true : false;
     3285                $index_ary[ $keyname ]['unique']     = ( '0' === (string) $tableindex->Non_unique ) ? true : false;
    32863286                $index_ary[ $keyname ]['index_type'] = $tableindex->Index_type;
    32873287            }
Note: See TracChangeset for help on using the changeset viewer.