mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-11 02:49:04 +01:00
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:
parent
8e45050e61
commit
1b99559639
@ -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']);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user