Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#29175 closed defect (bug) (duplicate)

email sender, non standard subdomain

Reported by: taur's profile taur Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.0
Component: Mail Keywords:
Focuses: Cc:


site generates sender addresses in the form of wordpress@…
in pluggable.php line 349 to 353 instead of using substr to cut off 'www.' from $sitename use parse_url($sitename)host? to make it work with non-standard subdomains aswell

Change History (3)

#1 in reply to: ↑ description @taur
10 years ago

  • Resolution set to maybelater
  • Status changed from new to closed

need to be:

if(count(explode('.', $sitename)) > 1) {
    $sitename = explode('.', $sitename);
    $sitename = $sitename[count($sitename)-2] . '.' . $sitename[count($sitename)-1];

in fact, but won't work for two-segment TLD's such as where something more elaborate is needed, see:

#2 @SergeyBiryukov
10 years ago

  • Resolution changed from maybelater to duplicate

Duplicate of #16805 and #25239.

#3 @SergeyBiryukov
10 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.