Ticket #3471: 3471.500.4.diff
| File 3471.500.4.diff, 3.3 KB (added by , 19 years ago) |
|---|
-
wp-includes/functions.php
1193 1193 else 1194 1194 $admin_dir = 'wp-admin/'; 1195 1195 1196 if ( ! did_action('admin_head') ) :1196 if ( !function_exists('did_action') || !did_action('admin_head') ) : 1197 1197 header('Content-Type: text/html; charset=utf-8'); 1198 if( function_exists('did_action') ) //Are filters loaded? 1199 status_header(500); 1200 else 1201 header("HTTP/1.0 500 Internal Server Error"); 1198 1202 1199 if ( empty($title) ) 1200 $title = __('WordPress › Error'); 1203 if ( empty($title) ){ 1204 if( function_exists('__') ) 1205 $title = __('WordPress › Error'); 1206 else 1207 $title = 'WordPress › Error'; 1208 } 1201 1209 1202 1203 1204 1210 ?> 1205 1211 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 1206 1212 <html xmlns="http://www.w3.org/1999/xhtml" <?php if ( function_exists('language_attributes') ) language_attributes(); ?>> -
wp-includes/wp-db.php
401 401 function bail($message) { // Just wraps errors in a nice header and footer 402 402 if ( !$this->show_errors ) 403 403 return false; 404 405 header('Content-Type: text/html; charset=utf-8'); 406 407 if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false) 408 $admin_dir = ''; 409 else 410 $admin_dir = 'wp-admin/'; 411 412 ?> 413 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 414 <html xmlns="http://www.w3.org/1999/xhtml"> 415 <head> 416 <title>WordPress › Error</title> 417 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 418 <link rel="stylesheet" href="<?php echo $admin_dir; ?>install.css" type="text/css" /> 419 </head> 420 <body> 421 <h1 id="logo"><img alt="WordPress" src="<?php echo $admin_dir; ?>images/wordpress-logo.png" /></h1> 422 <p><?php echo $message; ?></p> 423 </body> 424 </html> 425 <?php 426 die(); 404 wp_die($message); 427 405 } 428 406 } 429 407 -
wp-settings.php
113 113 114 114 if ( !defined('PLUGINDIR') ) 115 115 define('PLUGINDIR', 'wp-content/plugins'); // no leading slash, no trailing slash 116 117 require (ABSPATH . WPINC . '/functions.php'); 118 116 119 if ( file_exists(ABSPATH . 'wp-content/db.php') ) 117 120 require_once (ABSPATH . 'wp-content/db.php'); 118 121 else … … 122 125 $wpdb->prefix = $table_prefix; 123 126 124 127 if ( preg_match('|[^a-z0-9_]|i', $wpdb->prefix) && !file_exists(ABSPATH . 'wp-content/db.php') ) 125 die("<strong>ERROR</strong>: <code>$table_prefix</code> in <code>wp-config.php</code> can only contain numbers, letters, and underscores.");128 wp_die("<strong>ERROR</strong>: <code>$table_prefix</code> in <code>wp-config.php</code> can only contain numbers, letters, and underscores."); 126 129 127 130 // Table names 128 131 $wpdb->posts = $wpdb->prefix . 'posts'; … … 151 154 152 155 wp_cache_init(); 153 156 154 require (ABSPATH . WPINC . '/functions.php');155 157 require (ABSPATH . WPINC . '/classes.php'); 156 158 require (ABSPATH . WPINC . '/plugin.php'); 157 159 require (ABSPATH . WPINC . '/default-filters.php');
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)