Changeset 53918 for trunk/src/wp-includes/class-wpdb.php
- Timestamp:
- 08/22/2022 03:37:59 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wpdb.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wpdb.php
r53749 r53918 3377 3377 3378 3378 // If any of the columns don't have one of these collations, it needs more sanity checking. 3379 $safe_collations = array( 3380 'utf8_bin', 3381 'utf8_general_ci', 3382 'utf8mb3_bin', 3383 'utf8mb3_general_ci', 3384 'utf8mb4_bin', 3385 'utf8mb4_general_ci', 3386 ); 3387 3379 3388 foreach ( $this->col_meta[ $table ] as $col ) { 3380 3389 if ( empty( $col->Collation ) ) { … … 3382 3391 } 3383 3392 3384 if ( ! in_array( $col->Collation, array( 'utf8_general_ci', 'utf8_bin', 'utf8mb4_general_ci', 'utf8mb4_bin' ), true ) ) {3393 if ( ! in_array( $col->Collation, $safe_collations, true ) ) { 3385 3394 return false; 3386 3395 }
Note: See TracChangeset
for help on using the changeset viewer.