Make WordPress Core

Changeset 38664


Ignore:
Timestamp:
09/27/2016 09:35:25 PM (8 years ago)
Author:
jeremyfelt
Message:

Multisite: Use get_home_url() instead of get_blogaddress_by_id() in wp-activate.php.

get_home_url() is a better fit for the "View your site" link and can be properly filtered. This is the last remaining use of get_blogaddress_by_id() in core.

Props boboudreau, spacedmonkey.
Fixes #26855.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-activate.php

    r37552 r38664  
    126126            }
    127127        } else {
    128             $url = isset( $result['blog_id'] ) ? get_blogaddress_by_id( (int) $result['blog_id'] ) : '';
     128            $url = isset( $result['blog_id'] ) ? get_home_url( (int) $result['blog_id'] ) : '';
    129129            $user = get_userdata( (int) $result['user_id'] );
    130130            ?>
Note: See TracChangeset for help on using the changeset viewer.