diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index 4216130e39..cb38d408c2 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -1303,7 +1303,7 @@ function upgrade_379() { ); } - if ( 'byte' !== $content_length['type'] ) { + if ( 'byte' !== $content_length['type'] || 0 === $content_length['length'] ) { // Sites with malformed DB schemas are on their own. return; }