Fix assignment in WP_User::for_blog(). props prettyboymp, fixes #12587
git-svn-id: https://develop.svn.wordpress.org/trunk@13666 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
727e407dcb
commit
781cbf67d8
@ -768,13 +768,11 @@ 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);
|
||||
$this->_init_caps( $cap_key );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user