Changeset 31157 for trunk/src/wp-includes/ms-blogs.php
- Timestamp:
- 01/12/2015 02:23:43 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/ms-blogs.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-blogs.php
r31155 r31157 34 34 * 35 35 * @param int $blog_id Blog ID 36 * @return string 36 * @return string Full URL of the blog if found. Empty string if not. 37 37 */ 38 38 function get_blogaddress_by_id( $blog_id ) { 39 39 $bloginfo = get_blog_details( (int) $blog_id, false ); // only get bare details! 40 return esc_url( 'http://' . $bloginfo->domain . $bloginfo->path );40 return isset( $bloginfo->domain ) && isset( $bloginfo->path ) ? esc_url( 'http://' . $bloginfo->domain . $bloginfo->path ) : ''; 41 41 } 42 42
Note: See TracChangeset
for help on using the changeset viewer.