[wp-trac] [WordPress Trac] #19848: Function is_main_site uses $current_site->blog_id instead of $current_site->id

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 17 10:35:33 UTC 2012


#19848: Function is_main_site uses $current_site->blog_id instead of
$current_site->id
--------------------------+-----------------------------
 Reporter:  matslundberg  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Multisite     |    Version:  3.3.1
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 The function is_main_site uses $current_site->blog_id to compare if
 current blog is main site, should instead use $current_site->id. The
 $current_site->blog_id is not defined. $current_site (from what I can
 tell) loaded from table wp_site, which doesn't contain any blog_id column.

 This leads to issues when trying the registration form for MS sites. I get
 a redirection-loop for a MS installation.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19848>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list