[wp-trac] [WordPress Trac] #46666: Allow charset to be passed to the wp_die function

WordPress Trac noreply at wordpress.org
Wed Mar 27 13:39:11 UTC 2019


#46666: Allow charset to be passed to the wp_die function
----------------------------+----------------------------------------
 Reporter:  spacedmonkey    |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Bootstrap/Load  |    Version:  3.0
 Severity:  normal          |   Keywords:  good-first-bug needs-patch
  Focuses:                  |
----------------------------+----------------------------------------
 Currently, all the wp_die handlers, use (by guessing) the utf-8 charset.
 However, this is not allow this isn't allows the correct charset that the
 site uses. This charset is store in an option on the site. In `wp_die`
 options can not be used, as `wp_die` can be called if a database
 connection fails. But where `wp_die` is called and there is a connection,
 charset could be passed as an arg.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46666>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list