Ticket #1222: content-type-headers.diff
File content-type-headers.diff, 6.5 KB (added by , 20 years ago) |
---|
-
wp-login.php
8 8 header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); 9 9 header('Cache-Control: no-cache, must-revalidate'); 10 10 header('Pragma: no-cache'); 11 header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset')); 11 12 12 13 if ( defined('RELOCATE') ) { // Move flag is set 13 14 if ( isset( $_SERVER['PATH_INFO'] ) && ($_SERVER['PATH_INFO'] != $_SERVER['PHP_SELF']) ) … … 66 67 <form name="lostpass" action="wp-login.php" method="post" id="lostpass"> 67 68 <p> 68 69 <input type="hidden" name="action" value="retrievepassword" /> 70 3B 69 71 <label><?php _e('Username:') ?><br /> 70 72 <input type="text" name="user_login" id="user_login" value="" size="20" tabindex="1" /></label></p> 71 73 <p><label><?php _e('E-mail:') ?><br /> -
wp-includes/wp-db.php
301 301 function bail($message) { // Just wraps errors in a nice header and footer 302 302 if ( !$this->show_errors ) 303 303 return false; 304 header('Content-Type: text/html; charset=utf-8'); 304 305 echo <<<HEAD 305 306 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 306 307 <html xmlns="http://www.w3.org/1999/xhtml"> … … 355 356 } 356 357 357 358 $wpdb = new wpdb(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST); 358 ?> 359 No newline at end of file 359 ?> -
wp-register.php
84 84 $message .= sprintf(__('E-mail: %s'), $user_email) . "\r\n"; 85 85 86 86 @wp_mail(get_settings('admin_email'), sprintf(__('[%s] New User Registration'), get_settings('blogname')), $message); 87 87 88 header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_settings('blog_charset')); 88 89 ?> 89 90 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 90 91 <html xmlns="http://www.w3.org/1999/xhtml"> -
wp-commentsrss2.php
6 6 require('wp-blog-header.php'); 7 7 } 8 8 9 header('Content-type: text/xml; charset=' . get_settings('blog_charset'), true);9 header('Content-type: text/xml; charset=' . get_settings('blog_charset'), true); 10 10 11 11 echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>'; 12 12 ?> -
wp-admin/import-textpattern.php
13 13 14 14 $step = $_GET['step']; 15 15 if (!$step) $step = 0; 16 header('Content-Type: text/html; charset=utf-8'); 16 17 ?> 17 18 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 18 19 <html xmlns="http://www.w3.org/1999/xhtml"> -
wp-admin/import-b2.php
4 4 require('upgrade-functions.php'); 5 5 $step = $_GET['step']; 6 6 if (!$step) $step = 0; 7 header('Content-Type: text/html; charset=utf-8'); 7 8 ?> 8 9 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 9 10 <html xmlns="http://www.w3.org/1999/xhtml"> … … 243 244 ?> 244 245 245 246 </body> 246 </html> 247 No newline at end of file 247 </html> -
wp-admin/import-livejournal.php
17 17 18 18 $step = $_GET['step']; 19 19 if (!$step) $step = 0; 20 header('Content-Type: text/html; charset=utf-8'); 20 21 ?> 21 22 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 22 23 <html xmlns="http://www.w3.org/1999/xhtml"> … … 120 121 } 121 122 ?> 122 123 </body> 123 </html> 124 No newline at end of file 124 </html> -
wp-admin/setup-config.php
12 12 13 13 $step = 0; 14 14 if(isset($_GET['step'])) $step = $_GET['step']; 15 header('Content-Type: text/html; charset=utf-8'); 15 16 ?> 16 17 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 17 18 <html xmlns="http://www.w3.org/1999/xhtml"> -
wp-admin/install.php
12 12 $step = $_GET['step']; 13 13 else 14 14 $step = 0; 15 header('Content-Type: text/html; charset=utf-8'); 15 16 ?> 16 17 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 17 18 <html xmlns="http://www.w3.org/1999/xhtml"> 18 19 <head> 19 <title> WordPress › Installation</title>20 <title><?php _e('WordPress › Installation'); ?></title> 20 21 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 21 22 <style media="screen" type="text/css"> 22 23 <!-- -
wp-admin/import-rss.php
22 22 23 23 $step = $_GET['step']; 24 24 if (!$step) $step = 0; 25 header('Content-Type: text/html; charset=utf-8'); 25 26 ?> 26 27 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 27 28 <html xmlns="http://www.w3.org/1999/xhtml"> … … 187 188 } 188 189 ?> 189 190 </body> 190 </html> 191 No newline at end of file 191 </html> -
wp-admin/import-mt.php
8 8 require ('upgrade-functions.php'); 9 9 $step = $_GET['step']; 10 10 if (!$step) $step = 0; 11 header('Content-Type: text/html; charset=utf-8'); 11 12 ?> 12 13 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 13 14 <html xmlns="http://www.w3.org/1999/xhtml">