Slight logic tweak to [16889]. See #14123

git-svn-id: http://svn.automattic.com/wordpress/trunk@16890 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu 2010-12-13 11:44:53 +00:00
parent 75478abd5c
commit 6552004a1a
1 changed files with 1 additions and 1 deletions

View File

@ -469,7 +469,7 @@ class WP_User_Query {
$role = trim( $qv['role'] ); $role = trim( $qv['role'] );
$blog_id = absint( $qv['blog_id'] ); $blog_id = absint( $qv['blog_id'] );
if ( $role || ( is_multisite() && $blog_id ) ) { if ( $blog_id && ( $role || is_multisite() ) ) {
$cap_meta_query = array(); $cap_meta_query = array();
$cap_meta_query['key'] = $wpdb->get_blog_prefix( $blog_id ) . 'capabilities'; $cap_meta_query['key'] = $wpdb->get_blog_prefix( $blog_id ) . 'capabilities';