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
77 if ( !function_exists( 'graceful_fail' ) ) :
78 /**
79  * @since MU
80  * @deprecated 3.0.0
81  * @deprecated Use wp_die()
82  * @see wp_die()
83  */
84 function graceful_fail( $message ) {
85      _deprecated_function( __FUNCTION__, '3.0', 'wp_die()' );
86      $message = apply_filters( 'graceful_fail', $message );
87      $message_template = apply_filters( 'graceful_fail_template',
88 '<!DOCTYPE html>
89 <html xmlns="http://www.w3.org/1999/xhtml"><head>
90 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
91 <title>Error!</title>
92 <style type="text/css">
93 img {
94      border: 0;
95 }