Ticket #1222: content-type-headers2.diff
File content-type-headers2.diff, 5.7 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']) ) -
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: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset')); 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
21 21 $action = 'disabled'; 22 22 } 23 23 24 header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset')); 25 24 26 switch($action) { 25 27 26 28 case 'register': -
wp-admin/import-textpattern.php
13 13 14 14 $step = $_GET['step']; 15 15 if (!$step) $step = 0; 16 header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset')); 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: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset')); 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: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset')); 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: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset')); 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: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset')); 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: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset')); 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: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset')); 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">