Such a line is needed if the blog uses "utf-8" encoding, especially for those blogs in non-English language.
header( 'Content-Type: text/html; charset='.get_settings('blog_charset') );
Without such a line, some browser, such as IE, will only show a blank page when there is non-English character in this page.
Here is a patch file from diff:
-
wp-login.php
| old |
new |
|
| 9 | 9 | $error = ''; |
|---|
| 10 | 10 | |
|---|
| 11 | 11 | nocache_headers(); |
|---|
| | 12 | header( 'Content-Type: text/html; charset='.get_settings('blog_charset') ); |
|---|
| 12 | 13 | |
|---|
| 13 | 14 | if ( defined('RELOCATE') ) { // Move flag is set |
|---|
| 14 | 15 | if ( isset( $_SERVER['PATH_INFO'] ) && ($_SERVER['PATH_INFO'] != $_SERVER['PHP_SELF']) ) |
| … | … | |
| 103 | 104 | <body> |
|---|
| 104 | 105 | |
|---|
| 105 | 106 | <div id="login"> |
|---|
| 106 | | <h1><a href="http://lyceum.ibiblio.org/">Lyceum</a></h1> |
|---|
| | 107 | <h1><a href="http://www.xys-reader.org/blogs">Lyceum</a></h1> |
|---|
| 107 | 108 | <?php |
|---|
| 108 | 109 | if ( $error ) |
|---|
| 109 | 110 | echo "<div id='login_error'>$error</div>"; |