diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-05-23 15:09:10 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-05-23 15:09:10 +0000 |
commit | db94627712f61b8b7269b3e906edd93c0276f633 (patch) | |
tree | 8a5f32dcf8e5d8b5bb9a8675fd3612a671cdd376 /wp-includes/wpmu-functions.php | |
parent | a3051709afd14748a874b6bb47c39005ec7e347e (diff) | |
download | wordpress-mu-db94627712f61b8b7269b3e906edd93c0276f633.tar.gz wordpress-mu-db94627712f61b8b7269b3e906edd93c0276f633.tar.xz wordpress-mu-db94627712f61b8b7269b3e906edd93c0276f633.zip |
Use base_prefix instead of hardcoding the prefix, props luigisa, fixes #638
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1308 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/wpmu-functions.php')
-rw-r--r-- | wp-includes/wpmu-functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php index 9d65006..804a273 100644 --- a/wp-includes/wpmu-functions.php +++ b/wp-includes/wpmu-functions.php @@ -391,7 +391,7 @@ function get_blogs_of_user( $id, $all = false ) { $blogs = $match = array(); foreach ( (array) $user as $key => $value ) { - if ( strstr( $key, '_capabilities') && strstr( $key, 'wp_') ) { + if ( strstr( $key, '_capabilities') && strstr( $key, $wpdb->base_prefix) ) { preg_match('/' . $wpdb->base_prefix . '(\d+)_capabilities/', $key, $match); $blog = get_blog_details( $match[1] ); if ( $blog && isset( $blog->domain ) && ( $all == true || $all == false && ( $blog->archived == 0 && $blog->spam == 0 && $blog->deleted == 0 ) ) ) { |