Skip to content

Commit

Permalink
fix for the Requests library update
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Feb 28, 2023
1 parent 6904d31 commit 2ae8fa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wp-includes/class-wp-autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) );
}

/**
Expand Down

0 comments on commit 2ae8fa3

Please sign in to comment.