Skip to:
Content

BuddyPress.org

Changeset 6586


Ignore:
Timestamp:
12/10/2012 09:26:38 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Do not call esc_html() on site_name in sign-up email titles. See #4401.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-filters.php

    r6533 r6586  
    253253        $admin_email = 'support@' . $_SERVER['SERVER_NAME'];
    254254
    255     $from_name       = ( '' == get_site_option( 'site_name' ) ) ? 'WordPress' : esc_html( get_site_option( 'site_name' ) );
     255    $from_name       = get_site_option( 'site_name', 'WordPress' );
    256256    $message_headers = "MIME-Version: 1.0\n" . "From: \"{$from_name}\" <{$admin_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option( 'blog_charset' ) . "\"\n";
    257257    $message         = sprintf( __( "Thanks for registering! To complete the activation of your account and blog, please click the following link:\n\n%1\$s\n\n\n\nAfter you activate, you can visit your blog here:\n\n%2\$s", 'buddypress' ), $activate_url, esc_url( "http://{$domain}{$path}" ) );
     
    281281        $admin_email = 'support@' . $_SERVER['SERVER_NAME'];
    282282
    283     $from_name       = ( '' == get_site_option( 'site_name' ) ) ? 'WordPress' : esc_html( get_site_option( 'site_name' ) );
     283    $from_name       = get_site_option( 'site_name', 'WordPress' );
    284284    $message_headers = "MIME-Version: 1.0\n" . "From: \"{$from_name}\" <{$admin_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option( 'blog_charset' ) . "\"\n";
    285285    $message         = sprintf( __( "Thanks for registering! To complete the activation of your account please click the following link:\n\n%1\$s\n\n", 'buddypress' ), $activate_url );
Note: See TracChangeset for help on using the changeset viewer.