Support » Requests and Feedback » RFE: Database error in theme?

  • I see that 1.5 has a prettified database connection message in includes/wp-db.php; is there any way to migrate that into the themes schema? It’d be great to style that without touching the core WP code.

    Just a thought–thanks,

    – Ethan

Viewing 3 replies - 1 through 3 (of 3 total)
  • The currently activated theme is defined in the database, so what you suggests creates a chicken-and-egg problem:
    in order to style the error, a successful database connection must be made
    but the error is occuring specifically because a database connection could not be made!



    Ah, right. Pardon me while I smack myself in the forehead.

    Still, it’d be pretty cool to have a customizable error template outside of the core.



    Instead of the message you could perform an include to a “themed” file, as described here:

    However, any WP-related elements would (naturally) have to be hardcoded into your included file. So you wouldn’t really be able to hook into the theming functionality, but you could code up a page that duplicated a theme’s layout.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘RFE: Database error in theme?’ is closed to new replies.