mirror of
git://develop.git.wordpress.org/
synced 2025-02-28 10:33:05 +01:00
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:
parent
fd6d9b96e8
commit
5097915ce8
@ -1638,7 +1638,7 @@ class WP_Rewrite {
|
|||||||
if ( ! $this->using_permalinks() )
|
if ( ! $this->using_permalinks() )
|
||||||
return '';
|
return '';
|
||||||
|
|
||||||
$site_root = parse_url(get_option('siteurl'));
|
$site_root = parse_url( site_url() );
|
||||||
if ( isset( $site_root['path'] ) )
|
if ( isset( $site_root['path'] ) )
|
||||||
$site_root = trailingslashit($site_root['path']);
|
$site_root = trailingslashit($site_root['path']);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user