Make WordPress Core

Opened 5 years ago

Last modified 5 years ago

#45761 new defect (bug)

consistency between $wpdb->blogid and get_current_blog_id()

Reported by: arena's profile arena Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.0
Component: Networks and Sites Keywords: needs-patch dev-feedback
Focuses: multisite Cc:

Description

On a single install (not multisite),

you have

$wpdb->blogid => 0

get_current_blog_id() => 1

Must be a very old one !!!

Change History (3)

#1 @johnjamesjacoby
5 years ago

  • Component changed from General to Networks and Sites
  • Focuses multisite added
  • Keywords needs-patch added
  • Version changed from trunk to 3.0

#3 @keraweb
5 years ago

  • Keywords dev-feedback added

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

Note: See TracTickets for help on using tickets.