Upgrade: Ensure unintelligible DB schemas don't result in content loss.
See #32165. git-svn-id: https://develop.svn.wordpress.org/trunk@32417 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2abdcf41cf
commit
a42401d0c9
|
@ -1461,7 +1461,7 @@ function upgrade_430() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( 'byte' !== $content_length['type'] ) {
|
if ( 'byte' !== $content_length['type'] || 0 === $content_length['length'] ) {
|
||||||
// Sites with malformed DB schemas are on their own.
|
// Sites with malformed DB schemas are on their own.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue