diff --git a/src/wp-includes/class-wp-user-query.php b/src/wp-includes/class-wp-user-query.php
index 330882494e..25031ff142 100644
a
|
b
|
class WP_User_Query { |
840 | 840 | $result->id = $result->ID; |
841 | 841 | } |
842 | 842 | } elseif ( 'all_with_meta' === $qv['fields'] || 'all' === $qv['fields'] ) { |
843 | | cache_users( $this->results ); |
| 843 | |
| 844 | // Pluggable.php might not be loaded when this code is executed. |
| 845 | if ( function_exists( 'cache_users' ) ) { |
| 846 | cache_users( $this->results ); |
| 847 | } |
844 | 848 | |
845 | 849 | $r = array(); |
846 | 850 | foreach ( $this->results as $userid ) { |