WordPress.org

Make WordPress Core

Changeset 32422


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

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

Merge of [32417] to the 3.8 branch.

See #32165.

Props ocean90.

File:
1 edited

Legend:

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

    r32390 r32422  
    13191319        }
    13201320
    1321         if ( 'byte' !== $content_length['type'] ) {
     1321        if ( 'byte' !== $content_length['type'] || 0 === $content_length['length'] ) {
    13221322            // Sites with malformed DB schemas are on their own.
    13231323            return;
Note: See TracChangeset for help on using the changeset viewer.