[wp-trac] [WordPress Trac] #25239: $_SERVER['SERVER_NAME'] not a reliable when generating email host names

WordPress Trac noreply at wordpress.org
Fri Oct 14 03:02:00 UTC 2016


#25239: $_SERVER['SERVER_NAME'] not a reliable when generating email host names
-------------------------------------------------+-------------------------
 Reporter:  layotte                              |       Owner:
     Type:  defect (bug)                         |  SergeyBiryukov
 Priority:  normal                               |      Status:  reviewing
Component:  Mail                                 |   Milestone:  Future
 Severity:  normal                               |  Release
 Keywords:  has-patch dev-feedback needs-        |     Version:  3.8
  testing                                        |  Resolution:
                                                 |     Focuses:
-------------------------------------------------+-------------------------

Comment (by mensmaximus):

 Replying to [comment:48 desmith]:
 > The question of whether we should remove leading 'www.' in names here is
 still open. It is a change, and while I'd argue it's a change for the
 better, it's a pretty weak argument.

 Please ounce again take a look at my suggestion:
 https://core.trac.wordpress.org/ticket/25239#comment:22

 As you can see I have addressed the subdomain issue by passing a parameter
 to the function. I also passed a blog id parameter to make the function
 more universal.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/25239#comment:49>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list