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:
parent
8064343648
commit
52979cc4d5
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue