WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 4 months ago

#36887 new defect (bug)

Database upgrades should fail gracefully

Reported by: pento Owned by:
Milestone: Priority: low
Severity: normal Version:
Component: Upgrade/Install Keywords: needs-patch
Focuses: administration Cc:
PR Number:

Description

Currently, wp-admin/upgrade.php and wp_upgrade() don't check that the database has actually upgraded properly, before returning a success message.

Making them fail gracefully would be nice.

Change History (1)

#1 @BobNwp
3 years ago

  • Severity changed from minor to normal
  • Type changed from enhancement to defect (bug)

Any one wishing to know more about this issue should read the original ticket https://core.trac.wordpress.org/ticket/36886

Also - I changed the "type" of this ticket from enhancement to defect (bug). There is no way that it can be considered an enhancement to fix code which issues a message saying that the database update was successful when an error occurred - and the error is displayed right above the false positive message.

It is a defect, a bug.

I've also changed it from resolve as invalid to leave open.

I have no idea what invalid means but I would think the report should be left open until the issue is actually resolved.

I also changed it from minor to normal.

Note: See TracTickets for help on using tickets.