projects
/
WP-Plugins
/
staffords-employment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d41e6de
)
Setup the html part correctly now
author
Steve Sutton
<steve@gaslightmedia.com>
Fri, 11 Dec 2015 19:18:21 +0000
(14:18 -0500)
committer
Steve Sutton
<steve@gaslightmedia.com>
Fri, 11 Dec 2015 19:18:21 +0000
(14:18 -0500)
controllers/front.php
patch
|
blob
|
history
diff --git
a/controllers/front.php
b/controllers/front.php
index
4717791
..
4a9ed9d
100644
(file)
--- a/
controllers/front.php
+++ b/
controllers/front.php
@@
-168,7
+168,7
@@
class staffords_employment_front
foreach ($depTax as $depTerm) {
$deps[] = $depTerm->name;
}
- add_filter( 'wp_mail_content_type',
'set_html_content_type'
);
+ add_filter( 'wp_mail_content_type',
array( $this, 'set_html_content_type' )
);
wp_mail(
$to,
@@
-177,7
+177,12
@@
class staffords_employment_front
$headers
);
- remove_filter( 'wp_mail_content_type', 'set_html_content_type' );
+ remove_filter( 'wp_mail_content_type', array( $this, 'set_html_content_type' ) );
+ }
+
+ public function set_html_content_type()
+ {
+ return 'text/html';
}
/**