diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php index c8d9b11a11..84bcea052c 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php @@ -349,7 +349,7 @@ class WP_REST_Users_Controller extends WP_REST_Controller { $users = array(); - foreach ( $query->results as $user ) { + foreach ( $query->get_results() as $user ) { $data = $this->prepare_item_for_response( $user, $request ); $users[] = $this->prepare_response_for_collection( $data ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 77d58608af..c517f587b8 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59356'; +$wp_version = '6.8-alpha-59357'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.