Make WordPress Core

Changeset 25261


Ignore:
Timestamp:
09/05/2013 06:48:26 PM (11 years ago)
Author:
nacin
Message:

Stop using get_blogaddress_by_domain() when updating the siteurl/homeurl from the network admin.

props jeremyfelt, SergeyBiryukov.
fixes #18242. see #25235.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/site-info.php

    r23567 r25261  
    5151
    5252    if ( isset( $_POST['update_home_url'] ) && $_POST['update_home_url'] == 'update' ) {
    53         $blog_address = get_blogaddress_by_domain( $_POST['blog']['domain'], $_POST['blog']['path'] );
     53        $blog_address = esc_url_raw( $_POST['blog']['domain'] . $_POST['blog']['path'] );
    5454        if ( get_option( 'siteurl' ) != $blog_address )
    5555            update_option( 'siteurl', $blog_address );
Note: See TracChangeset for help on using the changeset viewer.