Changeset 48601 for trunk/src/wp-includes/pluggable.php
- Timestamp:
- 07/24/2020 05:38:27 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r48590 r48601 331 331 if ( ! isset( $from_email ) ) { 332 332 // Get the site domain and get rid of www. 333 $sitename = strtolower( $_SERVER['SERVER_NAME']);333 $sitename = wp_parse_url( network_home_url(), PHP_URL_HOST ); 334 334 if ( 'www.' === substr( $sitename, 0, 4 ) ) { 335 335 $sitename = substr( $sitename, 4 ); … … 1651 1651 } 1652 1652 1653 $wp_email = 'wordpress@' . preg_replace( '#^www\.#', '', strtolower( $_SERVER['SERVER_NAME']) );1653 $wp_email = 'wordpress@' . preg_replace( '#^www\.#', '', wp_parse_url( network_home_url(), PHP_URL_HOST ) ); 1654 1654 1655 1655 if ( '' === $comment->comment_author ) { … … 2832 2832 } 2833 2833 endif; 2834
Note: See TracChangeset
for help on using the changeset viewer.