Ticket #30566: fix-notice.30566.diff
File fix-notice.30566.diff, 529 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/ms-blogs.php
diff --git src/wp-includes/ms-blogs.php src/wp-includes/ms-blogs.php index e1c70e1..a655068 100644
function wpmu_update_blogs_date() { 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 ! empty( $bloginfo ) ? esc_url( 'http://' . $bloginfo->domain . $bloginfo->path ) : ''; 41 41 } 42 42 43 43 /**