mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 20:58:55 +00:00
Notice fixes. See #7509 props DD32.
git-svn-id: https://develop.svn.wordpress.org/trunk@9177 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -166,6 +166,8 @@ function redirect_canonical($requested_url=null, $do_redirect=true) {
|
||||
$user_home = @parse_url(get_option('home'));
|
||||
if ( isset($user_home['host']) )
|
||||
$redirect['host'] = $user_home['host'];
|
||||
if ( !isset($user_home['path']) )
|
||||
$user_home['path'] = '/';
|
||||
|
||||
// Handle ports
|
||||
if ( isset($user_home['port']) )
|
||||
@@ -239,7 +241,7 @@ function redirect_canonical($requested_url=null, $do_redirect=true) {
|
||||
if ( isset($redirect['port']) )
|
||||
$redirect_url .= ':' . $redirect['port'];
|
||||
$redirect_url .= $redirect['path'];
|
||||
if ( $redirect['query'] )
|
||||
if ( isset($redirect['query']) )
|
||||
$redirect_url .= '?' . $redirect['query'];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user