WordPress.org

Make WordPress Core

Opened 3 years ago

#31759 new enhancement

Allow to set $allow_bail when creating new wpdb object to handle connection error silently

Reported by: szaqal21 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.1.1
Component: Database Keywords:
Focuses: Cc:

Description

Class wpdb doesn't allow to set $allow_bail when creating new wpdb object. So there will be always error 500 on connection error. It would be great to have possibility to set $allow_bail at wpdb object creation (by constructor arguments perhaps).

Change History (0)

Note: See TracTickets for help on using tickets.