[wp-trac] [WordPress Trac] #32154: Don't upgrade global tables for utf8mb4

WordPress Trac noreply at wordpress.org
Tue Apr 28 16:25:10 UTC 2015


#32154: Don't upgrade global tables for utf8mb4
--------------------------+--------------------
 Reporter:  ocean90       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.1.3
Component:  Database      |     Version:  4.2
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+--------------------

Comment (by johnjamesjacoby):

 [https://core.trac.wordpress.org/attachment/ticket/32154/32154.02.patch
 32154.02.patch] does the following:

 * Introduces `wp_can_upgrade_global_tables()` ''(which could be moved out
 of `upgrade.php`later, maybe into `functions.php` or something available
 to plugins that may also have global tables; like BuddyPress)''
 * Bails early if `DO_NOT_UPGRADE_GLOBAL_TABLES` is set, respecting the
 original linchpin intention
 * Uses `is_main_site()` to ensure routine is happening from the main site
 of the current network
 * Uses `is_main_network()` to ensure routine is happening from the main
 network of the current installation

 This should cover all known and supported installation types:
 * Single-site
 * Multi-site
 * Multi-network
 * Multi-installation with mixed connections and global users tables

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32154#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list