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

WordPress Trac noreply at wordpress.org
Thu Oct 13 20:03:47 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 desmith):

 As suggested, I've moved the new function to a more-appropriate place, and
 added an apply_filters call.

 @joemcgill , you were right in that I overlooked a preg_replace call;
 thanks for the catch.

 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.

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


More information about the wp-trac mailing list