Make WordPress Core


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

more use get_blogaddress_by_name, see #12735

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.