diff --git a/src/wp-includes/class-wp-autoload.php b/src/wp-includes/class-wp-autoload.php index 17869f3ce2a08..24ddf78718f24 100644 --- a/src/wp-includes/class-wp-autoload.php +++ b/src/wp-includes/class-wp-autoload.php @@ -384,11 +384,11 @@ public static function register() { */ public static function register_external_bundled() { require_once ABSPATH . 'wp-includes/class-simplepie.php'; - require_once ABSPATH . 'wp-includes/class-requests.php'; + require_once ABSPATH . 'wp-includes/Requests/src/Autoload.php'; require_once ABSPATH . 'wp-includes/sodium_compat/autoload.php'; spl_autoload_register( 'wp_simplepie_autoload' ); - spl_autoload_register( array( 'Requests', 'autoloader' ) ); + spl_autoload_register( array( '\WpOrg\Requests\Autoload', 'load' ) ); } /**