WordPress.org

Make WordPress Core

Changeset 32441


Ignore:
Timestamp:
05/07/2015 01:12:01 AM (5 years ago)
Author:
mdawaffe
Message:

Upgrade: Since MySQL may auto-expand column widths when changing a column's character set, we must do our length-based comment checks prior to the character set changes.

Props jorbin, et alii.

Merges [32440] for the 4.2 branch.

See #32165.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/src/wp-admin/includes/upgrade.php

    r32430 r32441  
    525525        upgrade_400();
    526526
     527    // Don't harsh my mellow. upgrade_422() must be called before
     528    // upgrade_420() to catch bad comments prior to any auto-expansion of
     529    // MySQL column widths.
     530    if ( $wp_current_db_version < 31534 )
     531        upgrade_422();
     532
    527533    if ( $wp_current_db_version < 31351 )
    528534        upgrade_420();
    529 
    530     if ( $wp_current_db_version < 31534 )
    531         upgrade_422();
    532535
    533536    maybe_disable_link_manager();
Note: See TracChangeset for help on using the changeset viewer.