[wp-trac] [WordPress Trac] #18242: Changing domain for a network blog make faulty changes in database

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 29 09:30:11 UTC 2011


#18242: Changing domain for a network blog make faulty changes in database
----------------------------+------------------------------
 Reporter:  darkwhispering  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Multisite       |     Version:  3.2.1
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:  needs-patch => has-patch


Comment:

 Introduced in [12978] as a fix #12119:
 {{{
 $blog_address = get_blogaddress_by_domain($_POST['blog']['domain'],
 $_POST['blog']['path']);
 }}}
 This is the only place in core where `get_blogaddress_by_domain()` is
 used.

 Related WPMU changeset:
 [http://mu.trac.wordpress.org/changeset/266/trunk/wp-inst/wp-includes
 /wpmu-functions.php r266]. If I had to guess, it has something to do with
 WPMU working in a subfolder.

 Not sure if it's a good idea to change `get_blogaddress_by_domain()` due
 to backward compatibility reasons, so I've attached patches with two
 different attempts to fix the issue.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18242#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list