mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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:
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user