echo '<div class="wrap">';
echo '<h1>' .
esc_html( $title ) . '</h1>';
if ( isset( $_POST['action'
] ) && 'deleteblog' ===
$_POST['action'
] &&
isset( $_POST['confirmdelete'
] ) && '1' ===
$_POST['confirmdelete'
] ) { check_admin_referer( 'delete-blog'
);
$hash =
wp_generate_password( 20, false
);
update_option( 'delete_blog_hash',
$hash );
$url_delete =
esc_url( admin_url( 'ms-delete-site.php?h=' .
$hash ) );
$switched_locale =
switch_to_locale( get_locale() );
/* translators: Do not translate USERNAME, URL_DELETE, SITENAME, SITEURL: those are placeholders. */
$content =
__( "Howdy ###USERNAME###,
You recently clicked the 'Delete Site' link on your site and filled in a
form on that page.
If you really want to delete your site, click the link below. You will not
be asked to confirm again so only click this link if you are absolutely certain:
###URL_DELETE###
If you delete your site, please consider opening a new site here some time in
the future! (But remember that your current site and username are gone forever.)
Thank you for using the site,
All at ###SITENAME###
###SITEURL###"