- Timestamp:
- 11/08/2022 05:29:48 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-user-query.php
r54133 r54766 777 777 global $wpdb; 778 778 779 if ( ! did_action( 'plugins_loaded' ) ) { 780 _doing_it_wrong( 781 'WP_User_Query::query', 782 sprintf( 783 /* translators: %s: plugins_loaded */ 784 __( 'User queries should not be run before the %s hook.' ), 785 '<code>plugins_loaded</code>' 786 ), 787 '6.1.1' 788 ); 789 } 790 779 791 $qv =& $this->query_vars; 780 792 … … 841 853 } 842 854 } elseif ( 'all_with_meta' === $qv['fields'] || 'all' === $qv['fields'] ) { 843 cache_users( $this->results ); 855 if ( function_exists( 'cache_users' ) ) { 856 cache_users( $this->results ); 857 } 844 858 845 859 $r = array();
Note: See TracChangeset
for help on using the changeset viewer.