Ticket #25239: pluggable.php.3.diff
File pluggable.php.3.diff, 668 bytes (added by , 7 years ago) |
---|
-
wp-includes/pluggable.php
326 326 */ 327 327 328 328 if ( !isset( $from_email ) ) { 329 // Get the site domain and get rid of www. 330 $sitename = strtolower( $_SERVER['SERVER_NAME'] ); 331 if ( substr( $sitename, 0, 4 ) == 'www.' ) { 332 $sitename = substr( $sitename, 4 ); 333 } 334 335 $from_email = 'wordpress@' . $sitename; 329 $dom = parse_url( get_home_url( get_current_blog_id() ), PHP_URL_HOST ); 330 $from_email = 'wordpress@' . preg_replace("/^.*?([^\.]+)\.([^\.]+)$/", "$1.$2", $dom); 336 331 } 337 332 338 333 /**