Make WordPress Core

Changeset 7916


Ignore:
Timestamp:
05/09/2008 06:23:05 PM (16 years ago)
Author:
markjaquith
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.