Use site_url() in WP_Rewrite::mod_rewrite_rules(), rather than get_option(). props JustinSainton. fixes #21186.

git-svn-id: http://core.svn.wordpress.org/trunk@21810 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-09-11 01:44:48 +00:00
parent 8e45050e61
commit 1b99559639

View File

@ -1638,7 +1638,7 @@ class WP_Rewrite {
if ( ! $this->using_permalinks() )
return '';
$site_root = parse_url(get_option('siteurl'));
$site_root = parse_url( site_url() );
if ( isset( $site_root['path'] ) )
$site_root = trailingslashit($site_root['path']);