Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/04/2024 10:47:30 PM (3 months ago)
Author:
dcavins
Message:

Ensure that bp_email_set_content_type filter is run.

This patch sets the email type explicitly when the BP_Email class is constructed. This ensures that
the filter is run.

It is still possible to set the type after
instantiation using the set_content_type() method.

Props vapvarun.

Fixes #9169.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-email.php

    r13892 r13905  
    197197        $this->set_from( $from_address, $from_name );
    198198        $this->set_reply_to( bp_get_option( 'admin_email' ), $from_name );
     199
     200        // Prefer HTML emails unless filtered to plaintext.
     201        $this->set_content_type( $this->content_type );
    199202
    200203        /**
Note: See TracChangeset for help on using the changeset viewer.