[buddypress-trac] [BuddyPress Trac] #9169: Correct behavior of bp_email_set_content_type filter.

buddypress-trac noreply at wordpress.org
Mon Jun 3 18:45:07 UTC 2024


#9169: Correct behavior of bp_email_set_content_type filter.
--------------------------+---------------------
 Reporter:  dcavins       |       Owner:  DJPaul
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  14.0.0
Component:  Emails        |     Version:  12.5.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+---------------------

Comment (by dcavins):

 This patch sets the email type explicitly when the `BP_Email` is
 constructed. This ensures that the filter is run. It is possible to still
 set the type after instantiation using the `set_content_type()` method.

 I've added several tests to ensure that the various combinations work.

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


More information about the buddypress-trac mailing list