Skip to:
Content

BuddyPress.org

Changeset 12427


Ignore:
Timestamp:
08/08/2019 08:16:35 PM (4 months ago)
Author:
boonebgorges
Message:

Don't pass class-related variables to WP_Error object in bp_send_email().

Fixes #8126.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-functions.php

    r12324 r12427  
    32263226    $delivery_class = apply_filters( 'bp_send_email_delivery_class', 'BP_PHPMailer', $email_type, $to, $args );
    32273227    if ( ! class_exists( $delivery_class ) ) {
    3228         return new WP_Error( 'missing_class', __CLASS__, $this );
     3228        return new WP_Error( 'missing_class', 'No class found by that name', $delivery_class );
    32293229    }
    32303230
Note: See TracChangeset for help on using the changeset viewer.