Make WordPress Core

Changeset 32423


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

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

Merge of [32417] to the 3.7 branch.

See #32165.

Props ocean90.

File:
1 edited

Legend:

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

    r32395 r32423  
    13041304        }
    13051305
    1306         if ( 'byte' !== $content_length['type'] ) {
     1306        if ( 'byte' !== $content_length['type'] || 0 === $content_length['length'] ) {
    13071307            // Sites with malformed DB schemas are on their own.
    13081308            return;
Note: See TracChangeset for help on using the changeset viewer.