_preload_old_requests_classes_and_interfaces ( $to )
- (string) to Path to old WordPress installation.
- Introduced in WordPress: 6.2.0
- Deprecated in WordPress: —
Preloads old Requests classes and interfaces.This function preloads the old Requests code into memory before the
upgrade process deletes the files. Why? Requests code is loaded into
memory via an autoloader, meaning when a class or interface is needed
If a request is in process, Requests could attempt to access code. If
the file is not there, a fatal error could occur. If the file was
replaced, the new code is not compatible with the old, resulting in
a fatal error. Preloading ensures the code is in memory before the
code is updated.