Make WordPress Core

Changeset 4018


Ignore:
Timestamp:
07/16/2006 03:41:36 PM (18 years ago)
Author:
ryan
Message:

bail() cannot use wp_die(). wp_die() isn't loaded when bail() runs. fixes #2941

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/wp-db.php

    r4006 r4018  
    307307            return false;
    308308
    309         wp_die($message);
     309        header( 'Content-Type: text/html; charset=utf-8');
     310?>
     311<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     312<html xmlns="http://www.w3.org/1999/xhtml">
     313<head>
     314    <title><?php WordPress &rsaquo; Error ?></title>
     315    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     316    <style media="screen" type="text/css">
     317    <!--
     318    html {
     319        background: #eee;
     320    }
     321    body {
     322        background: #fff;
     323        color: #000;
     324        font-family: Georgia, "Times New Roman", Times, serif;
     325        margin-left: 25%;
     326        margin-right: 25%;
     327        padding: .2em 2em;
     328    }
     329
     330    h1 {
     331        color: #006;
     332        font-size: 18px;
     333        font-weight: lighter;
     334    }
     335
     336    h2 {
     337        font-size: 16px;
     338    }
     339
     340    p, li, dt {
     341        line-height: 140%;
     342        padding-bottom: 2px;
     343    }
     344
     345    ul, ol {
     346        padding: 5px 5px 5px 20px;
     347    }
     348    #logo {
     349        margin-bottom: 2em;
     350    }
     351    -->
     352    </style>
     353</head>
     354<body>
     355    <h1 id="logo"><img alt="WordPress" src="<?php echo "wp-admin/images/wordpress-logo.png" ?>/></h1>
     356    <p><?php echo $message; ?></p>
     357</body>
     358</html>
     359<?php
     360        die();
    310361    }
    311362}
Note: See TracChangeset for help on using the changeset viewer.