Closed boonebgorges closed 7 years ago
Thanks for the report, @boonebgorges.
You are almost right, but I think it is safe to actually remove the marker from wp_mail_filter()
since the marker should already be added in the set_bp_post_object()
method.
I've done this in commit 7e8acab. Can you give it a test and report back?
This will break support for BP 2.4 and lower, but hopefully that shouldn't affect anyone!
Seems to do the trick. Thank you sir!
Cool, thanks for verifying!
When using a plugin that overrides
wp_mail()
, the "Reply ABOVE THIS LINE..." marker is getting prepended twice. It looks like it's happening inset_bp_post_object()
as well aswp_mail_filter()
. I'm assuming that the one inwp_mail_filter()
was the original one, andset_bp_post_object()
is to support BP 2.5+ emails, but the latter was kept in place for backward compatibility. Does that sound right?I can dig in more, but I thought this was something you might be able to answer very quickly.