[wp-trac] [WordPress Trac] #5574: Extended customized errors
WordPress Trac
wp-trac at lists.automattic.com
Thu Jan 3 14:46:24 GMT 2008
#5574: Extended customized errors
-------------------------+--------------------------------------------------
Reporter: coolmann | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.5
Component: Template | Version:
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
One feature I appreciated in 2.3.2 is the chance to have customized db
errors, using the wp-content/db-error.php page. I'd like to point your
attention on two issues:
* Why don't you move the db-error.php page inside the theme folder? So
that theme developers can also distribute it inside one single folder
* What about customizing the wp_die function declared in
functions.php? Currently I'm using an hacked version, in which I added
this row
// Included a custom error page, much better than the standard one!
// And of course commented the one below
include($_SERVER["DOCUMENT_ROOT"].'wp-content/themes/duechiacchiere
/wp-die.php');
at row 1260, and removed the static HTML code included below that
line. I know this is not the "best" way to do it, but maybe it's a
beginning!
Have a happy new Year!
camu.
--
Ticket URL: <http://trac.wordpress.org/ticket/5574>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list