Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#15233 closed defect (bug) (fixed)

Add get_current_blog_id()

Reported by: aaroncampbell Owned by:
Priority: normal Milestone: 3.1
Component: General Version: 3.0
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

Currently the blog id is stored in several places. Adding get_current_blog_id() will help consolidate and give us a central place to point plugin and theme developers.

Attachments (1)

15233.001.diff (5.2 KB ) - added by aaroncampbell 16 years ago.

Download all attachments as: .zip

Change History (3)

#1 @aaroncampbell
16 years ago

The patch (15233.001.diff) adds the function to wp-includes/general-template.php near get_bloginfo(), and uses it where appropriate (based on a search for global .*\$blog_id).

#2 @ryan
16 years ago

  • Resolutionfixed
  • Status newclosed

(In [16050]) get_current_blog_id(). Props aaroncampbell. fixes #15233

Note: See TracTickets for help on using tickets.