Why is WordPress not using $_SERVER['SERVER_NAME'] for 'WP_SITEURL' and 'WP_HOME' as default?
I came across this site and I was wondering why WordPress isn't using this as default:
define('WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME']);
define('WP_HOME', 'http://' . $_SERVER['SERVER_NAME']);
So nobody has to change this values when changing the domain. Is there any reason or disadvantages of using this?