Ticket #30566: 30566.patch
File 30566.patch, 1.0 KB (added by , 10 years ago) |
---|
-
src/wp-includes/ms-blogs.php
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 isset( $bloginfo->domain ) && isset( $bloginfo->path) ? esc_url( 'http://' . $bloginfo->domain . $bloginfo->path ) : '';40 return ( $bloginfo ) ? esc_url( 'http://' . $bloginfo->domain . $bloginfo->path ) : ''; 41 41 } 42 42 43 43 /** … … 99 99 * 100 100 * @param int|string|array $fields A blog ID, a blog slug, or an array of fields to query against. Optional. If not specified the current blog ID is used. 101 101 * @param bool $get_all Whether to retrieve all details or only the details in the blogs table. Default is true. 102 * @return object Blog details.102 * @return object|false Blog details on success, false on failure. 103 103 */ 104 104 function get_blog_details( $fields = null, $get_all = true ) { 105 105 global $wpdb;