Make WordPress Core

Changeset 32421


Ignore:
Timestamp:
05/06/2015 09:51:17 PM (9 years ago)
Author:
mdawaffe
Message:

Upgrade: Ensure unintelligible DB schemas don't result in content loss.

Merge of [32417] to the 3.9 branch.

See #32165.

Props ocean90.

File:
1 edited

Legend:

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

    r32389 r32421  
    13061306        }
    13071307
    1308         if ( 'byte' !== $content_length['type'] ) {
     1308        if ( 'byte' !== $content_length['type'] || 0 === $content_length['length'] ) {
    13091309            // Sites with malformed DB schemas are on their own.
    13101310            return;
Note: See TracChangeset for help on using the changeset viewer.