[wp-trac] [WordPress Trac] #3248: Need way to replace WPDB error message

WordPress Trac noreply at wordpress.org
Sun Feb 11 08:03:18 UTC 2024


#3248: Need way to replace WPDB error message
--------------------------+----------------------
 Reporter:  Viper007Bond  |       Owner:  (none)
     Type:  enhancement   |      Status:  closed
 Priority:  low           |   Milestone:
Component:  General       |     Version:  2.1
 Severity:  minor         |  Resolution:  wontfix
 Keywords:  needs-patch   |     Focuses:
--------------------------+----------------------

Comment (by stepishchevqqxls7):

 How can we implement a mechanism to easily replace the error message(s)
 for being unable to connect to the database in `wp-db.php`? Considering
 that plugins wouldn't run before this point, perhaps something similar to
 how `advanced-cache.php` works would be suitable. What are your thoughts
 on this approach?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/3248#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list