From 4502b65ac0ce7de6b255e77189b527c6a3eaa800 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 13 Sep 2013 09:11:09 +0000 Subject: [PATCH] Inline documentation for hooks in wp-admin/ms-delete-site.php. props NikV. see #25229. Built from https://develop.svn.wordpress.org/trunk@25424 git-svn-id: http://core.svn.wordpress.org/trunk@25349 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/ms-delete-site.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/wp-admin/ms-delete-site.php b/wp-admin/ms-delete-site.php index 7d772c2658..8ef8b810ac 100644 --- a/wp-admin/ms-delete-site.php +++ b/wp-admin/ms-delete-site.php @@ -43,7 +43,7 @@ if ( isset( $_POST['action'] ) && $_POST['action'] == 'deleteblog' && isset( $_P $url_delete = esc_url( admin_url( 'ms-delete-site.php?h=' . $hash ) ); - $content = apply_filters( 'delete_site_email_content', __( "Dear User, + $content = __( "Dear User, 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 @@ -56,7 +56,15 @@ are gone forever.) Thanks for using the site, Webmaster -###SITE_NAME###" ) ); +###SITE_NAME###" ); + /** + * Filter the email content sent when a site in a Multisite network is deleted. + * + * @since 3.0.0 + * + * @param string $content The email content that will be sent to the user who deleted a site in a Multisite network. + */ + $content = apply_filters( 'delete_site_email_content', $content ); $content = str_replace( '###URL_DELETE###', $url_delete, $content ); $content = str_replace( '###SITE_NAME###', $current_site->site_name, $content );