Make WordPress Core

Changeset 32418


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

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

Merge of [32417] to the 4.2 branch.

See #32165.

Props ocean90.

File:
1 edited

Legend:

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

    r32380 r32418  
    14701470        }
    14711471
    1472         if ( 'byte' !== $content_length['type'] ) {
     1472        if ( 'byte' !== $content_length['type'] || 0 === $content_length['length'] ) {
    14731473            // Sites with malformed DB schemas are on their own.
    14741474            return;
Note: See TracChangeset for help on using the changeset viewer.