Download all files FTP

This commit is contained in:
2026-04-13 15:50:16 +02:00
parent d8382136b2
commit cb5b386424
6906 changed files with 1956223 additions and 40713 deletions

View File

@@ -0,0 +1,20 @@
<?php
namespace VendorDuplicator;
/**
* Backwards compatibility layer for Requests.
*
* Allows for Composer to autoload the old PSR-0 classes via the custom autoloader.
* This prevents issues with _extending final classes_ (which was the previous solution).
*
* Please see the Changelog for the 2.0.0 release for upgrade notes.
*
* @package Requests
*
* @deprecated 2.0.0 Use the PSR-4 class names instead.
*/
if (\class_exists('VendorDuplicator\\WpOrg\\Requests\\Autoload') === \false) {
require_once \dirname(__DIR__) . '/src/Autoload.php';
}
WpOrg\Requests\Autoload::register();

View File

@@ -0,0 +1,86 @@
<?php
namespace VendorDuplicator;
/**
* Requests for PHP
*
* Inspired by Requests for Python.
*
* Based on concepts from SimplePie_File, RequestCore and WP_Http.
*
* @package Requests
*
* @deprecated 2.0.0
*/
/*
* Integrators who cannot yet upgrade to the PSR-4 class names can silence deprecations
* by defining a `REQUESTS_SILENCE_PSR0_DEPRECATIONS` constant and setting it to `true`.
* The constant needs to be defined before this class is required.
*/
if (!\defined('REQUESTS_SILENCE_PSR0_DEPRECATIONS') || \REQUESTS_SILENCE_PSR0_DEPRECATIONS !== \true) {
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error
\trigger_error('The PSR-0 `Requests_...` class names in the Requests library are deprecated.' . ' Switch to the PSR-4 `WpOrg\\Requests\\...` class names at your earliest convenience.', \E_USER_DEPRECATED);
// Prevent the deprecation notice from being thrown twice.
if (!\defined('REQUESTS_SILENCE_PSR0_DEPRECATIONS')) {
\define('REQUESTS_SILENCE_PSR0_DEPRECATIONS', \true);
}
}
require_once \dirname(__DIR__) . '/src/Requests.php';
/**
* Requests for PHP
*
* Inspired by Requests for Python.
*
* Based on concepts from SimplePie_File, RequestCore and WP_Http.
*
* @package Requests
*
* @deprecated 2.0.0 Use `WpOrg\Requests\Requests` instead for the actual functionality and
* use `WpOrg\Requests\Autoload` for the autoloading.
*/
class Requests extends WpOrg\Requests\Requests
{
/**
* Deprecated autoloader for Requests.
*
* @deprecated 2.0.0 Use the `WpOrg\Requests\Autoload::load()` method instead.
*
* @codeCoverageIgnore
*
* @param string $class Class name to load
*/
public static function autoloader($class)
{
if (\class_exists('VendorDuplicator\\WpOrg\\Requests\\Autoload') === \false) {
require_once \dirname(__DIR__) . '/src/Autoload.php';
}
return WpOrg\Requests\Autoload::load($class);
}
/**
* Register the built-in autoloader
*
* @deprecated 2.0.0 Include the `WpOrg\Requests\Autoload` class and
* call `WpOrg\Requests\Autoload::register()` instead.
*
* @codeCoverageIgnore
*/
public static function register_autoloader()
{
require_once \dirname(__DIR__) . '/src/Autoload.php';
WpOrg\Requests\Autoload::register();
}
}
/**
* Requests for PHP
*
* Inspired by Requests for Python.
*
* Based on concepts from SimplePie_File, RequestCore and WP_Http.
*
* @package Requests
*
* @deprecated 2.0.0 Use `WpOrg\Requests\Requests` instead for the actual functionality and
* use `WpOrg\Requests\Autoload` for the autoloading.
*/
\class_alias('VendorDuplicator\\Requests', 'Requests', \false);