Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: graceful_fail

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
60 if ( !function_exists( 'graceful_fail' ) ) :
61 /**
62  * @since MU
63  * @deprecated 3.0.0
64  * @deprecated Use wp_die()
65  * @see wp_die()
66  */
67 function graceful_fail( $message ) {
68      _deprecated_function( __FUNCTION__, '3.0', 'wp_die()' );
69      $message = apply_filters( 'graceful_fail', $message );
70      $message_template = apply_filters( 'graceful_fail_template',
71 '<!DOCTYPE html>
72 <html xmlns="http://www.w3.org/1999/xhtml"><head profile="http://gmpg.org/xfn/11">
73 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
74 <title>Error!</title>
75 <style type="text/css">
76 img {
77      border: 0;
78 }