Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/wp-includes/pluggable.php

    r6145 r6266  
    226226    // Set the from name and email
    227227    $phpmailer->From = apply_filters( 'wp_mail_from', $from_email );
     228    $phpmailer->Sender = apply_filters( 'wp_mail_from', $from_email );
    228229    $phpmailer->FromName = apply_filters( 'wp_mail_from_name', $from_name );
    229230
     
    437438    $allowed_hosts = (array) apply_filters('allowed_redirect_hosts', array($wpp['host']), $lp['host']);
    438439
    439     if ( isset($lp['host']) && !in_array($lp['host'], $allowed_hosts) )
     440    if ( isset($lp['host']) && ( !in_array($lp['host'], $allowed_hosts) && $lp['host'] != strtolower($wpp['host'])) )
    440441        $location = get_option('siteurl') . '/wp-admin/';
    441442
Note: See TracChangeset for help on using the changeset viewer.