Make WordPress Core


Ignore:
Timestamp:
01/25/2010 10:09:43 PM (16 years ago)
Author:
ryan
Message:

Deprecate graceful_fail(). see #11644

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-deprecated.php

    r12733 r12827  
    5757}
    5858
     59if ( !function_exists('graceful_fail') ) :
     60/**
     61 * @deprecated 3.0
     62 */
     63function graceful_fail( $message ) {
     64    _deprecated_function( __FUNCTION__, '3.0', 'wp_die()' );
     65    $message = apply_filters('graceful_fail', $message);
     66    $message_template = apply_filters( 'graceful_fail_template',
     67'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     68<html xmlns="http://www.w3.org/1999/xhtml"><head profile="http://gmpg.org/xfn/11">
     69<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
     70<title>Error!</title>
     71<style type="text/css">
     72img {
     73    border: 0;
     74}
     75body {
     76line-height: 1.6em; font-family: Georgia, serif; width: 390px; margin: auto;
     77text-align: center;
     78}
     79.message {
     80    font-size: 22px;
     81    width: 350px;
     82    margin: auto;
     83}
     84</style>
     85</head>
     86<body>
     87<p class="message">%s</p>
     88</body>
     89</html>' );
     90    die( sprintf( $message_template, $message ) );
     91}
     92endif;
     93
    5994?>
Note: See TracChangeset for help on using the changeset viewer.