Skip to content

Commit da9ace2

Browse files
authored
Move the hooks of the HTML e-mails before the footer part (#1587)
1 parent 5034aeb commit da9ace2

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

templates/emails/new-dm.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@
3838
</div>
3939

4040
<?php
41-
// Load footer.
42-
require __DIR__ . '/parts/footer.php';
43-
4441
/**
4542
* Fires at the bottom of the new direct message emails.
4643
*
4744
* @param array $args The template arguments.
4845
*/
4946
do_action( 'activitypub_new_dm_email', $args );
47+
48+
// Load footer.
49+
require __DIR__ . '/parts/footer.php';

templates/emails/new-follower.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,12 @@
148148
</p>
149149

150150
<?php
151-
// Load footer.
152-
require __DIR__ . '/parts/footer.php';
153-
154151
/**
155152
* Fires at the bottom of the new follower email.
156153
*
157154
* @param array $args The actor that followed the blog.
158155
*/
159156
do_action( 'activitypub_new_follower_email', $args );
157+
158+
// Load footer.
159+
require __DIR__ . '/parts/footer.php';

templates/emails/new-mention.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@
5353
</p>
5454

5555
<?php
56-
// Load footer.
57-
require __DIR__ . '/parts/footer.php';
58-
5956
/**
6057
* Fires at the bottom of the new mention emails.
6158
*
6259
* @param array $args The template arguments.
6360
*/
6461
do_action( 'activitypub_new_mention_email', $args );
62+
63+
// Load footer.
64+
require __DIR__ . '/parts/footer.php';

0 commit comments

Comments
 (0)