[wpmu-trac] [WordPress MU Trac] #539: Incorrect value for COLLATE hardcoded in wp-db.php

WordPress MU Trac wpmu-trac at lists.automattic.com
Wed Jan 9 08:35:17 GMT 2008


#539: Incorrect value for COLLATE hardcoded in wp-db.php
------------------------+---------------------------------------------------
 Reporter:  jdub        |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  normal      |   Milestone:          
Component:  component1  |     Version:          
 Severity:  normal      |    Keywords:          
------------------------+---------------------------------------------------
 r1073 introduced hardcoded values for charset/collate in wp-db.php.

 I don't quite understand why these were added, since it seems that the
 rest of the WP plumbing has shifted to utf8 by default.

 Anyway, the hardcoded value for COLLATE is 'utf8', which seems to be
 wrong, because MySQL doesn't understand it, and fails to create any tables
 as a result. The default MySQL collation for 'utf8' tables is
 'utf8_general_ci'.

 I've removed these assignments, after which database creation works as
 expected.

 (I think this means no one has created a new WPMU site from trunk since
 October!)

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/539>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list