WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/04/2008 03:22:24 AM (13 years ago)
Author:
ryan
Message:

Notice fixes from filosofo and Viper007Bond. see #7509

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/rewrite.php

    r9300 r9506  
    16271627
    16281628        $site_root = parse_url(get_option('siteurl'));
    1629         $site_root = trailingslashit($site_root['path']);
     1629        if ( isset( $site_root['path'] ) ) {
     1630            $site_root = trailingslashit($site_root['path']);
     1631        }
    16301632
    16311633        $home_root = parse_url(get_option('home'));
    1632         $home_root = trailingslashit($home_root['path']);
     1634        if ( isset( $home_root['path'] ) ) {
     1635            $home_root = trailingslashit($home_root['path']);
     1636        }
    16331637
    16341638        $rules = "<IfModule mod_rewrite.c>\n";
Note: See TracChangeset for help on using the changeset viewer.