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

git-svn-id: https://develop.svn.wordpress.org/trunk@21810 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-09-11 01:44:48 +00:00
parent fd6d9b96e8
commit 5097915ce8

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']);