Make WordPress Core

Ticket #25229: ms-delete-site.php1.diff

File ms-delete-site.php1.diff, 1.1 KB (added by NikV, 11 years ago)

Second Pass at wp-admin/ms-delete-site.php. Thanks @DrewAPicture.

  • ms-delete-site.php

     
    4343
    4444        $url_delete = esc_url( admin_url( 'ms-delete-site.php?h=' . $hash ) );
    4545
    46         $content = apply_filters( 'delete_site_email_content', __( "Dear User,
     46        $email_content = __( "Dear User,
    4747You recently clicked the 'Delete Site' link on your site and filled in a
    4848form on that page.
    4949If you really want to delete your site, click the link below. You will not
     
    5757Thanks for using the site,
    5858Webmaster
    5959###SITE_NAME###" ) );
     60        /**
     61         * Filter the email content sent when a site in a Multisite network is deleted.
     62         *
     63         * @since Unknown
     64         *
     65         * @param string $email_content The email content that will be sent to the user who deleted a site in a Multisite network.
     66         */
     67        $content = apply_filters( 'delete_site_email_content', $email_content );
    6068
    6169        $content = str_replace( '###URL_DELETE###', $url_delete, $content );
    6270        $content = str_replace( '###SITE_NAME###', $current_site->site_name, $content );