summaryrefslogtreecommitdiffstats
path: root/wp-includes/wpmu-functions.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-04-13 09:55:25 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-04-13 09:55:25 +0000
commit382953d478f1adb82ec36189272b82a6d82c9970 (patch)
tree630c645ede1101a42b47789342ab6aeffa077d7a /wp-includes/wpmu-functions.php
parentdb729dffb361898ff2b0a756dcc90e221d4f739f (diff)
downloadwordpress-mu-382953d478f1adb82ec36189272b82a6d82c9970.tar.gz
wordpress-mu-382953d478f1adb82ec36189272b82a6d82c9970.tar.xz
wordpress-mu-382953d478f1adb82ec36189272b82a6d82c9970.zip
No need to switch blog
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@960 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/wpmu-functions.php')
-rw-r--r--wp-includes/wpmu-functions.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php
index f766dfb..43b7cde 100644
--- a/wp-includes/wpmu-functions.php
+++ b/wp-includes/wpmu-functions.php
@@ -169,12 +169,10 @@ function get_blog_details( $id, $all = true ) {
return false;
if( $all == true ) {
- switch_to_blog($id);
$wpdb->hide_errors();
$details->blogname = get_blog_option($id, 'blogname');
$details->siteurl = get_blog_option($id, 'siteurl');
$details->post_count = get_blog_option($id, 'post_count');
- restore_current_blog();
$wpdb->show_errors();
wp_cache_set( $id, serialize( $details ), 'blog-details' );