[wp-trac] [WordPress Trac] #41936: get_main_site_id ignores custom values of $current_site->blog_id

WordPress Trac noreply at wordpress.org
Sat Oct 14 22:45:30 UTC 2017


#41936: get_main_site_id ignores custom values of $current_site->blog_id
---------------------------------------------+-----------------------------
 Reporter:  spacedmonkey                     |       Owner:  flixos90
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  4.9
Component:  Networks and Sites               |     Version:  trunk
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-unit-tests has-patch commit  |     Focuses:  multisite,
                                             |  performance
---------------------------------------------+-----------------------------

Comment (by flixos90):

 In [changeset:"41862"]:
 {{{
 #!CommitTicketReference repository="" revision="41862"
 Multisite: Return `get_current_blog_id()` value instead of hard-coded 1 in
 `get_main_site_id()` for non-multisite environments.

 See #41936.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41936#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list