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 = '' ) {
|
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 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue