Opened 12 years ago
Closed 12 years ago
#26536 closed defect (bug) (fixed)
wp_check_php_mysql_versions() outputs messages with no charset defined
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.9 | Priority: | normal |
| Severity: | normal | Version: | 3.4.2 |
| Component: | Upgrade/Install | Keywords: | has-patch 3.9-early |
| Focuses: | Cc: |
Description
After [21715] the function wp_check_php_mysql_versions() doesn't define a charset before sending messages to the browser leading to strings with invalid characters in some languages. For example, in Brazilian Portuguese, if the MySQL extension for PHP is not installed the user sees the string below:
Parece que em sua instalação do PHP está faltando a extensão MySQL, que é requesitada pelo WordPress.
I'm not sure if we should simply set the charset calling the header() function (patch attached) or if we should move wp_die() function to another or a new file where it can be used by wp_check_php_mysql_versions() as Nacin proposed in comment:6:ticket:21316. I don't know WP enough to decide where could be a better location for wp_die().
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
That's what
_default_wp_die_handler()does, so 26536.patch looks good to me.Should probably add a
! headers_sent()check just in case.