620 | | if ( ! $this->results ) { |
621 | | return; |
| 620 | if ( $this->results ) { |
| 621 | if ( 'all_with_meta' == $qv['fields'] ) { |
| 622 | $r = array(); |
| 623 | foreach ( $this->results as $userid ) { |
| 624 | $r[ $userid ] = new WP_User( $userid, '', $qv['blog_id'] ); |
| 625 | } |
| 626 | $this->results = $r; |
| 627 | } elseif ( 'all' == $qv['fields'] ) { |
| 628 | foreach ( $this->results as $key => $user ) { |
| 629 | $this->results[ $key ] = new WP_User( $user, '', $qv['blog_id'] ); |
| 630 | } |
| 631 | } |
627 | | $r = array(); |
628 | | foreach ( $this->results as $userid ) { |
629 | | $r[ $userid ] = new WP_User( $userid, '', $qv['blog_id'] ); |
630 | | } |
631 | | |
632 | | $this->results = $r; |
633 | | } elseif ( 'all' == $qv['fields'] ) { |
634 | | foreach ( $this->results as $key => $user ) { |
635 | | $this->results[ $key ] = new WP_User( $user, '', $qv['blog_id'] ); |
636 | | } |
| 644 | if ( $this->results && 'all_with_meta' == $qv['fields'] ) { |
| 645 | cache_users( array_keys( $this->results ) ); |