Fix assignment in WP_User::for_blog(). props prettyboymp, fixes #12587

git-svn-id: http://svn.automattic.com/wordpress/trunk@13666 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-03-11 18:24:37 +00:00
parent 8064343648
commit 52979cc4d5
1 changed files with 4 additions and 6 deletions

View File

@ -768,12 +768,10 @@ class WP_User {
*/
function for_blog( $blog_id = '' ) {
global $wpdb;
if ( !empty($blog_id) ) {
$cap_key = $wpdb->get_blog_prefix( $blog_id );
$cap_key. 'capabilities';
} else {
if ( ! empty( $blog_id ) )
$cap_key = $wpdb->get_blog_prefix( $blog_id ) . 'capabilities';
else
$cap_key = '';
}
$this->_init_caps( $cap_key );
}
}