diff --git a/wp-includes/post.php b/wp-includes/post.php index b055e4bbc4..f5cfd0c32f 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -4333,7 +4333,7 @@ function get_page_uri( $page = 0 ) { foreach ( $page->ancestors as $parent ) { $parent = get_post( $parent ); - if ( $parent ) { + if ( $parent && $parent->post_name ) { $uri = $parent->post_name . '/' . $uri; } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 1c0cbea924..c54d491816 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-beta4-38144'; +$wp_version = '4.6-beta4-38145'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.