Deprecate graceful_fail(). see #11644

git-svn-id: https://develop.svn.wordpress.org/trunk@12827 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2010-01-25 22:09:43 +00:00
parent d33c4ae2ca
commit 15e5d91692
4 changed files with 45 additions and 43 deletions
-31
View File
@@ -1766,37 +1766,6 @@ function fix_import_form_size( $size ) {
return $size; // default
}
if ( !function_exists('graceful_fail') ) :
function graceful_fail( $message ) {
$message = apply_filters('graceful_fail', $message);
$message_template = apply_filters( 'graceful_fail_template',
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Error!</title>
<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;
}
</style>
</head>
<body>
<p class="message">%s</p>
</body>
</html>' );
die( sprintf( $message_template, $message ) );
}
endif;
/* Delete blog */
class delete_blog {
function delete_blog() {