Changeset 48601
- Timestamp:
- 07/24/2020 05:38:27 PM (4 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-functions.php
r48511 r48601 953 953 954 954 if ( '' === $admin_email ) { 955 $admin_email = 'support@' . $_SERVER['SERVER_NAME'];955 $admin_email = 'support@' . wp_parse_url( network_home_url(), PHP_URL_HOST ); 956 956 } 957 957 … … 1080 1080 1081 1081 if ( '' === $admin_email ) { 1082 $admin_email = 'support@' . $_SERVER['SERVER_NAME'];1082 $admin_email = 'support@' . wp_parse_url( network_home_url(), PHP_URL_HOST ); 1083 1083 } 1084 1084 … … 1664 1664 1665 1665 if ( '' === $admin_email ) { 1666 $admin_email = 'support@' . $_SERVER['SERVER_NAME'];1666 $admin_email = 'support@' . wp_parse_url( network_home_url(), PHP_URL_HOST ); 1667 1667 } 1668 1668 … … 1756 1756 1757 1757 if ( '' === $admin_email ) { 1758 $admin_email = 'support@' . $_SERVER['SERVER_NAME'];1758 $admin_email = 'support@' . wp_parse_url( network_home_url(), PHP_URL_HOST ); 1759 1759 } 1760 1760 -
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.