Make WordPress Core

Ticket #30566: 30566.patch

File 30566.patch, 1.0 KB (added by SergeyBiryukov, 10 years ago)
  • src/wp-includes/ms-blogs.php

     
    3737 */
    3838function get_blogaddress_by_id( $blog_id ) {
    3939        $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 ) : '';
    4141}
    4242
    4343/**
     
    9999 *
    100100 * @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.
    101101 * @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.
    103103 */
    104104function get_blog_details( $fields = null, $get_all = true ) {
    105105        global $wpdb;