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