Deprecated: The PSR-0 `Requests_...` class names in the Request library are deprecated | Wordpress

Опубликовано: 08 Август 2026
на канале: BBUniversal Team
2,363
5

Deprecated: The PSR-0 `Requests_...` class names in the Request library are deprecated. Switch to the PSR-4 `WpOrg\Requests\...` class names at your earliest convenience. in wp-includes/class-requests.php on line 24 .

Solution Description:
The error message you're encountering is related to the deprecation of class names in the Request library in WordPress. To resolve this error, you need to update the class names from PSR-0 format to PSR-4 format as recommended. Here's what you can do:

1. Open the file wp-includes/class-requests.php in a text editor or IDE.

2. Look for the line mentioned in the error message, which is line 24 in this case.

3. In that line, you should see a class name starting with Requests_. This is the deprecated class name.

4. Replace the deprecated class name with the new PSR-4 format class name, which should be WpOrg\Requests\....

5. Save the changes to the file.