mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 18:13:00 +01:00
Fix some notices when pinging
git-svn-id: https://develop.svn.wordpress.org/trunk@16069 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c8366c5966
commit
743606fac1
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user