diff options
author | Peter Westwood <westi@git.wordpress.org> | 2010-10-29 07:07:28 +0000 |
---|---|---|
committer | Peter Westwood <westi@git.wordpress.org> | 2010-10-29 07:07:28 +0000 |
commit | 743606fac146ff276a6c3729a4706b6c48e9af09 (patch) | |
tree | 89c0c45ab8f51aecaf26fe55fc9613b0509a7b83 | |
parent | c8366c5966b727d5542a2bc95c99cfd46158684c (diff) | |
download | wordpress-743606fac146ff276a6c3729a4706b6c48e9af09.tar.gz wordpress-743606fac146ff276a6c3729a4706b6c48e9af09.zip |
Fix some notices when pinging
git-svn-id: https://develop.svn.wordpress.org/trunk@16069 602fd350-edb4-49c9-b593-d223f7449a82
-rw-r--r-- | wp-includes/functions.php | 2 | ||||
-rw-r--r-- | wp-includes/rewrite.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 5499629d3e..216ba4b99e 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -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; } } diff --git a/wp-includes/rewrite.php b/wp-includes/rewrite.php index de9ff8906f..6a91292951 100644 --- a/wp-includes/rewrite.php +++ b/wp-includes/rewrite.php @@ -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); } |