[wp-trac] [WordPress Trac] #45761: consistency between $wpdb->blogid and get_current_blog_id()

WordPress Trac noreply at wordpress.org
Fri Mar 15 13:31:35 UTC 2019


#45761: consistency between $wpdb->blogid and get_current_blog_id()
--------------------------------------+------------------------------
 Reporter:  arena                     |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Networks and Sites        |     Version:  3.0
 Severity:  normal                    |  Resolution:
 Keywords:  needs-patch dev-feedback  |     Focuses:  multisite
--------------------------------------+------------------------------
Changes (by keraweb):

 * keywords:  needs-patch => needs-patch dev-feedback


Comment:

 A check in the `wpdb::__construct()` for `is_multisite()` could fix this.
 If it's not a multisite then set blogid to 1.

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


More information about the wp-trac mailing list