I have difficulties to understand the idea behind WP_HOME and WP_SITEURL. By reading the documentation I thought that I could have something like
define('WP_HOME', 'http://example.com'); define('WP_SITEURL', 'http://localhost');
where the public would read my blog via WP_HOME while the administration would be 'non-public', i.e. only accessable via 'localhost' in this case.
Now, this does not work:
get_bloginfo('url') => http://example.com get_bloginfo('stylesheet_url') => http://localhost/path/to/style.css
The URL returned for stylesheet_url is bit unexpected as I expected it to start with http://example.com.
So, what's the point of having WP_HOME and WP_SITEURL?