[wp-trac] [WordPress Trac] #2902: WP_Die function for display errors
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 5 00:06:25 GMT 2006
#2902: WP_Die function for display errors
----------------------------+-----------------------------------------------
Reporter: Sewar | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.0.4
Component: Administration | Version: 2.0.3
Severity: normal | Keywords: i18n error UTF-8 charset bg|has-patch bg|needs-testing
----------------------------+-----------------------------------------------
If there are error breaks WP, like upgrade files without update DB, WP
will use "die" function to display the localized error message, but this
will display the message without selecting charset, so browsers will try
to guess the right charset but they will filed, FireFox for example will
display Arabic messages using Cyrillic charset!
WP_Die function display errors in nice page and set charset to UTF-8 in
both HTTP and HTML headers, it's modify copy of "bail" function in wp-
db.php which display DB errors.
To test the patch apply it and change $wp_db_version then go to admin.
--
Ticket URL: <http://trac.wordpress.org/ticket/2902>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list