WordPress.org

Make WordPress Core

Ticket #37956: 37956.patch

File 37956.patch, 674 bytes (added by MikeGillihan, 3 years ago)
  • src/wp-includes/wp-db.php

    diff --git a/src/wp-includes/wp-db.php b/src/wp-includes/wp-db.php
    index 00aa316..f4f0826 100644
    a b class wpdb { 
    788788                        }
    789789                }
    790790
    791                 // _unicode_520_ is a better collation, we should try to use that when it's available.
    792                 if ( defined( 'DB_COLLATE' ) && DB_COLLATE ) {
    793                         $collate = DB_COLLATE;
    794                 } elseif ( $this->has_cap( 'utf8mb4_520' ) && 'utf8mb4_unicode_ci' === $collate ) {
     791                // _unicode_520_ is a better collation, we should use that when it's available.
     792                if ( $this->has_cap( 'utf8mb4_520' ) && 'utf8mb4_unicode_ci' === $collate ) {
    795793                        $collate = 'utf8mb4_unicode_520_ci';
    796794                }
    797795