-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue with Mandrill line-breaks messing up Give emails #458
- Loading branch information
Devin Walker
committed
Mar 29, 2016
1 parent
a2d76a8
commit 08c6c84
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
/** | ||
* Plugin Compatibility | ||
* | ||
* Functions for compatibility with other plugins. | ||
* | ||
* @package Give | ||
* @subpackage Functions/Compatibility | ||
* @copyright Copyright (c) 2016, WordImpress | ||
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License | ||
* @since 1.0 | ||
*/ | ||
|
||
|
||
/** | ||
* Disables the mandrill_nl2br filter while sending Give emails | ||
* | ||
* @since 1.4 | ||
* @return void | ||
*/ | ||
function give_disable_mandrill_nl2br() { | ||
add_filter( 'mandrill_nl2br', '__return_false' ); | ||
} | ||
add_action( 'give_email_send_before', 'give_disable_mandrill_nl2br'); |