[wp-trac] [WordPress Trac] #26536: wp_check_php_mysql_versions() outputs messages with no charset defined

WordPress Trac noreply at wordpress.org
Wed Dec 11 16:38:12 UTC 2013


#26536: wp_check_php_mysql_versions() outputs messages with no charset defined
-----------------------------+-----------------------------
 Reporter:  rodrigosprimo    |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Upgrade/Install  |    Version:
 Severity:  normal           |   Keywords:
-----------------------------+-----------------------------
 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().

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26536>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list