[wp-trac] [WordPress Trac] #37956: DB_COLLATE doesn't override $collate when defining utf8mb4_unicode_ci in wp-config

WordPress Trac noreply at wordpress.org
Tue Sep 6 15:36:46 UTC 2016


#37956: DB_COLLATE doesn't override $collate when defining utf8mb4_unicode_ci in
wp-config
--------------------------+-----------------------------
 Reporter:  MikeGillihan  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Database      |    Version:  4.6
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 As of 4.6 when I spin up a site locally it's created using
 utf8mb4_unicode_520_ci as the dafault collation. However, this is causing
 issues whenever I push to a live server that does not yet support the
 newer version.

 If a constant is specifically defined in wp-config.php, should it override
 the default behavior? Currently, if utf8mb4_unicode_ci is defined it is
 still upgraded to utf8mb4_unicode_520_ci regardless of the constant.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37956>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list