There was an error while loading. Please reload this page.
1 parent b6a3608 commit 2981380Copy full SHA for 2981380
1 file changed
library/Upgrade.php
@@ -1090,6 +1090,10 @@ public function initUpgrade()
1090
if ($this->{$funcName}($this->db)) {
1091
update_option($this->dbVersionKey, (int) $currentDbVersion);
1092
wp_cache_flush();
1093
+ } else {
1094
+ delete_transient($lockKey);
1095
+ error_log('Upgrade function ' . $funcName . ' failed. Aborting upgrade process.');
1096
+ break;
1097
}
1098
1099
delete_transient($lockKey);
0 commit comments