diff --git a/wp-includes/ms-blogs.php b/wp-includes/ms-blogs.php index 72ebbaa3a8..d291f169db 100644 --- a/wp-includes/ms-blogs.php +++ b/wp-includes/ms-blogs.php @@ -33,11 +33,11 @@ function wpmu_update_blogs_date() { * @since MU * * @param int $blog_id Blog ID - * @return string + * @return string Full URL of the blog if found. Empty string if not. */ function get_blogaddress_by_id( $blog_id ) { $bloginfo = get_blog_details( (int) $blog_id, false ); // only get bare details! - return esc_url( 'http://' . $bloginfo->domain . $bloginfo->path ); + return isset( $bloginfo->domain ) && isset( $bloginfo->path ) ? esc_url( 'http://' . $bloginfo->domain . $bloginfo->path ) : ''; } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 560b68d62a..38ff5807c6 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31156'; +$wp_version = '4.2-alpha-31157'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.