Opened 14 years ago
Closed 14 years ago
#15233 closed defect (bug) (fixed)
Add get_current_blog_id()
Reported by: | aaroncampbell | Owned by: | |
---|---|---|---|
Milestone: | 3.1 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | General | Keywords: | has-patch |
Focuses: | Cc: |
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)
Change History (3)
Note: See
TracTickets for help on using
tickets.
The patch (15233.001.diff) adds the function to
wp-includes/general-template.php
nearget_bloginfo()
, and uses it where appropriate (based on a search forglobal .*\$blog_id
).