[buddypress-trac] [BuddyPress Trac] #6970: Email API causes fatal error on WP <= v4.2.6

buddypress-trac noreply at wordpress.org
Mon Mar 21 17:20:54 UTC 2016


#6970: Email API causes fatal error on WP <= v4.2.6
--------------------------+--------------------
 Reporter:  DJPaul        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  high          |   Milestone:  2.5.2
Component:  API - Emails  |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+--------------------

Comment (by DJPaul):

 I wrote the above without looking at the code. Turns out, we already
 always set `AltBody` for HTML emails to the plaintext version of the
 email, so we can just remove the `wp_strip_all_tags` parameter because
 it's not useful.

 This is hard to catch in unit tests because we mock the email delivery
 class so that we don't send emails -- and that's exactly where this
 problematic code is.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6970#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list