Changeset 31178
- Timestamp:
- 01/14/2015 05:32:19 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-blogs.php
r31158 r31178 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 … … 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 ) {
Note: See TracChangeset
for help on using the changeset viewer.