Warning: This function has been deprecated. Use wp_die() instead.

graceful_fail( $message )

Deprecated functionality to gracefully fail.

Description Description

See also See also

Top ↑

Source Source

File: wp-includes/ms-deprecated.php

function graceful_fail( $message ) {
	_deprecated_function( __FUNCTION__, '3.0.0', 'wp_die()' );
	$message = apply_filters( 'graceful_fail', $message );
	$message_template = apply_filters( 'graceful_fail_template',
'<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css">
img {
	border: 0;
body {
line-height: 1.6em; font-family: Georgia, serif; width: 390px; margin: auto;
text-align: center;
.message {
	font-size: 22px;
	width: 350px;
	margin: auto;
<p class="message">%s</p>
</html>' );
	die( sprintf( $message_template, $message ) );

Top ↑

Changelog Changelog

Version Description
3.0.0 Use wp_die()
MU (3.0.0) Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.