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