mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Notice fixes from filosofo and Viper007Bond. see #7509
git-svn-id: https://develop.svn.wordpress.org/trunk@9506 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1626,10 +1626,14 @@ class WP_Rewrite {
|
||||
}
|
||||
|
||||
$site_root = parse_url(get_option('siteurl'));
|
||||
$site_root = trailingslashit($site_root['path']);
|
||||
if ( isset( $site_root['path'] ) ) {
|
||||
$site_root = trailingslashit($site_root['path']);
|
||||
}
|
||||
|
||||
$home_root = parse_url(get_option('home'));
|
||||
$home_root = trailingslashit($home_root['path']);
|
||||
if ( isset( $home_root['path'] ) ) {
|
||||
$home_root = trailingslashit($home_root['path']);
|
||||
}
|
||||
|
||||
$rules = "<IfModule mod_rewrite.c>\n";
|
||||
$rules .= "RewriteEngine On\n";
|
||||
|
||||
Reference in New Issue
Block a user