Make WordPress Core


Ignore:
Timestamp:
10/14/2008 09:08:28 PM (16 years ago)
Author:
westi
Message:

Notice fixes. See #7509 props DD32.

File:
1 edited

Legend:

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

    r9156 r9177  
    167167    if ( isset($user_home['host']) )
    168168        $redirect['host'] = $user_home['host'];
     169    if ( !isset($user_home['path']) )
     170        $user_home['path'] = '/';
    169171
    170172    // Handle ports
     
    240242            $redirect_url .= ':' . $redirect['port'];
    241243        $redirect_url .= $redirect['path'];
    242         if ( $redirect['query'] )
     244        if ( isset($redirect['query']) )
    243245            $redirect_url .= '?' . $redirect['query'];
    244246    }
Note: See TracChangeset for help on using the changeset viewer.