summaryrefslogtreecommitdiffstats
path: root/wp-includes/wpmu-functions.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-05-22 15:54:10 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-05-22 15:54:10 +0000
commitc14a2c5f964802681b8884718401357c3b304906 (patch)
tree240c531eb59db3524033fd137b0854f3986a87eb /wp-includes/wpmu-functions.php
parent418799170de8631ce539e68939118f99ed83e002 (diff)
downloadwordpress-mu-c14a2c5f964802681b8884718401357c3b304906.tar.gz
wordpress-mu-c14a2c5f964802681b8884718401357c3b304906.tar.xz
wordpress-mu-c14a2c5f964802681b8884718401357c3b304906.zip
Pass previous blod_id to action
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1304 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/wpmu-functions.php')
-rw-r--r--wp-includes/wpmu-functions.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php
index 1c9c618..241646f 100644
--- a/wp-includes/wpmu-functions.php
+++ b/wp-includes/wpmu-functions.php
@@ -337,6 +337,7 @@ function switch_to_blog( $new_blog ) {
$wpdb->set_blog_id($new_blog);
$table_prefix = $wpdb->prefix;
+ $prev_blog_id = $blog_id;
$blog_id = $new_blog;
if( is_object( $wp_roles ) ) {
@@ -348,7 +349,7 @@ function switch_to_blog( $new_blog ) {
if ( is_object( $current_user ) )
$current_user->_init_caps();
- do_action('switch_blog', $blog_id, array());
+ do_action('switch_blog', $blog_id, $prev_blog_id);
$switched = true;
}