Changeset 54773
- Timestamp:
- 11/09/2022 01:59:44 AM (2 years ago)
- Location:
- branches/6.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.1
-
branches/6.1/src/wp-includes/class-wp-user-query.php
r54133 r54773 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.