Ticket #37945: 37945.patch
File 37945.patch, 762 bytes (added by , 8 years ago) |
---|
-
wp-includes/pluggable.php
323 323 324 324 if ( !isset( $from_email ) ) { 325 325 // Get the site domain and get rid of www. 326 $sitename = strtolower( $_SERVER['SERVER_NAME'] );326 $sitename = empty ( $_SERVER['SERVER_NAME'] ) ? get_bloginfo( 'url' ) : strtolower( $_SERVER['SERVER_NAME'] ); 327 327 if ( substr( $sitename, 0, 4 ) == 'www.' ) { 328 328 $sitename = substr( $sitename, 4 ); 329 329 } 330 331 $from_email = 'wordpress@' . $sitename; 330 331 if( empty( $sitename ) ) { 332 $from_email = get_bloginfo( 'admin_email' ); 333 } else { 334 $from_email = 'wordpress@' . $sitename; 335 } 332 336 } 333 337 334 338 /**