Skip to:
Content

BuddyPress.org

Ticket #2597: 2597.diff

File 2597.diff, 663 bytes (added by boonebgorges, 14 years ago)
  • bp-core/bp-core-filters.php

     
    1010 * @return The blog name for the root blog
    1111 */
    1212function bp_core_email_from_name_filter() {
    13         return apply_filters( 'bp_core_email_from_name_filter', get_blog_option( BP_ROOT_BLOG, 'blogname' ) );
     13        $from_name = get_blog_option( BP_ROOT_BLOG, 'blogname' );
     14        return apply_filters( 'bp_core_email_from_name_filter', htmlspecialchars_decode( $from_name, ENT_QUOTES ) );
    1415}
    1516add_filter( 'wp_mail_from_name', 'bp_core_email_from_name_filter' );
    1617