Ticket #2925: wp-db.php.3.diff
File wp-db.php.3.diff, 1.5 KB (added by , 19 years ago) |
---|
-
Sewar/PHP/WordPress/SVN/wp-includes/wp-db.php
303 303 } 304 304 305 305 function bail($message) { // Just wraps errors in a nice header and footer 306 if ( !$this->show_errors ) 307 return false; 308 header( 'Content-Type: text/html; charset=utf-8'); 309 echo <<<HEAD 310 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 311 <html xmlns="http://www.w3.org/1999/xhtml"> 312 <head> 313 <title>WordPress › Error</title> 314 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 315 <style media="screen" type="text/css"> 316 <!-- 317 html { 318 background: #eee; 319 } 320 body { 321 background: #fff; 322 color: #000; 323 font-family: Georgia, "Times New Roman", Times, serif; 324 margin-left: 25%; 325 margin-right: 25%; 326 padding: .2em 2em; 327 } 306 if ( !$this->show_errors ) 307 return false; 328 308 329 h1 { 330 color: #006; 331 font-size: 18px; 332 font-weight: lighter; 333 } 334 335 h2 { 336 font-size: 16px; 337 } 338 339 p, li, dt { 340 line-height: 140%; 341 padding-bottom: 2px; 342 } 343 344 ul, ol { 345 padding: 5px 5px 5px 20px; 346 } 347 #logo { 348 margin-bottom: 2em; 349 } 350 --> 351 </style> 352 </head> 353 <body> 354 <h1 id="logo"><img alt="WordPress" src="http://static.wordpress.org/logo.png" /></h1> 355 HEAD; 356 echo $message; 357 echo "</body></html>"; 358 die(); 309 wp_die($message); 359 310 } 360 311 } 361 312