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,13 +768,11 @@ class WP_User {
*/ */
function for_blog( $blog_id = '' ) { function for_blog( $blog_id = '' ) {
global $wpdb; global $wpdb;
if ( !empty($blog_id) ) { if ( ! empty( $blog_id ) )
$cap_key = $wpdb->get_blog_prefix( $blog_id ); $cap_key = $wpdb->get_blog_prefix( $blog_id ) . 'capabilities';
$cap_key. 'capabilities'; else
} else {
$cap_key = ''; $cap_key = '';
} $this->_init_caps( $cap_key );
$this->_init_caps($cap_key);
} }
} }