Opened 14 years ago
Closed 13 years ago
#17883 closed defect (bug) (fixed)
get_blog_option queries DB on default blog_id
Reported by: | wpmuguru | Owned by: | ryan |
---|---|---|---|
Milestone: | 3.3 | Priority: | normal |
Severity: | normal | Version: | 3.1.3 |
Component: | Multisite | Keywords: | has-patch |
Focuses: | Cc: |
Description
If get_blog_option is passed null for a blog_id, it queries the DB instead of using the current blog option cache.
In most, if not all, of the MS specific functions that have a $blog_id, if $blog_id is null, the current blog is used.
patch is attached.
Attachments (1)
Change History (9)
#5
follow-up:
↓ 7
@
13 years ago
Sorry wpmuguru, tried to stop the commit to include props. Thanks for the contribution as always :-)
#6
@
13 years ago
- Owner set to ryan
- Status changed from new to reviewing
Leaving this open so ryan can review it.
Note: See
TracTickets for help on using
tickets.
The $wpdb->get_blog_prefix( ... will return the prefix for the current blog when null is passed. So, the current implementation defaults to the current blog but queries the DB instead of retrieving from cache.