Fix some notices when pinging

git-svn-id: http://svn.automattic.com/wordpress/trunk@16069 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-10-29 07:07:28 +00:00
parent 4ef6fab485
commit 00cfb6bd82
2 changed files with 2 additions and 2 deletions

View File

@ -1206,7 +1206,7 @@ function do_enclose( $content, $post_ID ) {
continue;
if ( isset( $test['query'] ) )
$post_links[] = $link_test;
elseif ( $test['path'] != '/' && $test['path'] != '' )
elseif ( isset($test['path']) && ( $test['path'] != '/' ) && ($test['path'] != '' ) )
$post_links[] = $link_test;
}
}

View File

@ -299,7 +299,7 @@ function url_to_postid($url) {
} else {
// Chop off /path/to/blog
$home_path = parse_url(home_url());
$home_path = $home_path['path'];
$home_path = isset( $home_path['path'] ) ? $home_path['path'] : '' ;
$url = str_replace($home_path, '', $url);
}