Make WordPress Core

Changeset 14705


Ignore:
Timestamp:
05/16/2010 11:00:48 PM (14 years ago)
Author:
wpmuguru
Message:

more use get_blogaddress_by_name, see #12735

Location:
trunk/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/export.php

    r14444 r14705  
    156156        // mu: the base url
    157157        if ( isset( $current_site->domain ) )
    158             return 'http://' . $current_site->domain . $current_site->path;
     158            return network_home_url();
    159159        // wp: the blog url
    160160        else
  • trunk/wp-admin/includes/upgrade.php

    r14596 r14705  
    199199            $first_post = stripslashes( __( 'Welcome to <a href="SITE_URL">SITE_NAME</a>. This is your first post. Edit or delete it, then start blogging!' ) );
    200200
    201         $first_post = str_replace( "SITE_URL", esc_url("http://" . $current_site->domain . $current_site->path), $first_post );
     201        $first_post = str_replace( "SITE_URL", esc_url( network_home_url() ), $first_post );
    202202        $first_post = str_replace( "SITE_NAME", $current_site->site_name, $first_post );
    203203    } else {
     
    230230    if ( is_multisite() ) {
    231231        $first_comment_author = get_site_option( 'first_comment_author', $first_comment_author );
    232         $first_comment_url = get_site_option( 'first_comment_url', 'http://' . $current_site->domain . $current_site->path );
     232        $first_comment_url = get_site_option( 'first_comment_url', network_home_url() );
    233233        $first_comment = get_site_option( 'first_comment', $first_comment );
    234234    }
Note: See TracChangeset for help on using the changeset viewer.