Changeset 3979
- Timestamp:
- 07/05/2006 07:13:26 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin.php
r3946 r3979 6 6 7 7 if ( get_option('db_version') != $wp_db_version ) 8 die(sprintf(__("Your database is out-of-date. Please <a href='%s'>upgrade</a>."), get_option('siteurl') . '/wp-admin/upgrade.php'));8 wp_die(sprintf(__("Your database is out-of-date. Please <a href='%s'>upgrade</a>."), get_option('siteurl') . '/wp-admin/upgrade.php')); 9 9 10 10 require_once(ABSPATH . 'wp-admin/admin-functions.php'); -
trunk/wp-includes/functions.php
r3974 r3979 1116 1116 } 1117 1117 1118 function wp_die($message) { 1119 global $wpdb; 1120 1121 if ( !$wpdb->show_errors ) 1122 return false; 1123 header('Content-Type: text/html; charset=utf-8'); 1124 1125 $output = <<<HEAD 1126 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 1127 <html xmlns="http://www.w3.org/1999/xhtml"> 1128 <head> 1129 <title>WordPress › Error</title> 1130 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 1131 <style media="screen" type="text/css"> 1132 <!-- 1133 html { 1134 background: #eee; 1135 } 1136 body { 1137 background: #fff; 1138 color: #000; 1139 font-family: Georgia, "Times New Roman", Times, serif; 1140 margin-left: 25%; 1141 margin-right: 25%; 1142 padding: .2em 2em; 1143 } 1144 1145 h1 { 1146 color: #006; 1147 font-size: 18px; 1148 font-weight: lighter; 1149 } 1150 1151 h2 { 1152 font-size: 16px; 1153 } 1154 1155 p, li, dt { 1156 line-height: 140%; 1157 padding-bottom: 2px; 1158 } 1159 1160 ul, ol { 1161 padding: 5px 5px 5px 20px; 1162 } 1163 #logo { 1164 margin-bottom: 2em; 1165 } 1166 --> 1167 </style> 1168 </head> 1169 <body> 1170 <h1 id="logo"><img alt="WordPress" src="../wp-admin/images/wordpress-logo.png" /></h1> 1171 <p>$message</p> 1172 </body> 1173 </html> 1174 HEAD; 1175 1176 $output = apply_filters('wp_die', $output, $message); 1177 echo $output; 1178 1179 die(); 1180 } 1181 1118 1182 ?>
Note: See TracChangeset
for help on using the changeset viewer.