Changeset 7916

Show
Ignore:
Timestamp:
05/09/08 18:23:05 (4 months ago)
Author:
markjaquith
Message:

Do not use the "home"-supplied host for canonical redirects if no host is there specified. props thenlich. fixes #6890

Files:

Legend:

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

    r7871 r7916  
    138138    // www.example.com vs example.com 
    139139    $user_home = @parse_url(get_option('home')); 
    140     $redirect['host'] = $user_home['host']; 
     140    if ( isset($user_home['host']) ) 
     141        $redirect['host'] = $user_home['host']; 
    141142 
    142143    // Handle ports