wp-includes/php-ai-client/src/Files/DTO/File.php:133Converts a local file to base64.
$filePathstringstring private function convertFileToBase64(string $filePath): string { $fileContent = @file_get_contents($filePath); if ($fileContent === \false) { throw new RuntimeException(sprintf('Unable to read file: %s', $filePath)); } return base64_encode($fileContent); }Introduced in 0.1.0. Unchanged from 7.0.4 through 7.1.0.
Signature, return type and hooks compared across 2 parsed releases.
src/wp-includes/php-ai-client/src/Files/DTO/File.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.