diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 5499629d3..216ba4b99 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 de9ff8906..6a9129295 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); }