Plugin Directory

Changeset 2930578

Timestamp:
06/25/2023 04:09:50 PM (13 months ago)
Author:
khorshidlab
Message:

Plugin Version 1.2.1

Location:
arvancloud-object-storage
Files:
20 edited
1 copied

Legend:

Unmodified
Added
Removed
  • arvancloud-object-storage/tags/1.2.1/README.txt

    r2924945 r2930578  
    55Tested up to: 6.2
    66Requires PHP: 7.1
    7 Stable tag: 1.2.0
     7Stable tag: 1.2.
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    4848
    4949== Changelog ==
     50
     51
     52
    5053= 1.2.0 - 2023-06-12 =
    5154* Add new feature: Delete object from storage when deleted in WordPress
  • arvancloud-object-storage/tags/1.2.1/inc/Admin/Admin.php

    r2924945 r2930578  
    441441    public function upload_media_to_storage( $post_id, $force_upload = false ) {
    442442
     443
     444
     445
     446
     447
     448
     449
     450
     451
     452
     453
     454
    443455        if( !$this->bucket_name ) {
    444456            return;
     
    521533    public function upload_image_to_storage( $args ) {
    522534
     535
     536
     537
     538
     539
     540
     541
     542
     543
     544
     545
     546
     547
    523548        $upload_dir = wp_upload_dir();
    524549        $basename   = basename( $args['file'] );
  • arvancloud-object-storage/tags/1.2.1/vendor/autoload.php

    r2924945 r2930578  
    44
    55if (PHP_VERSION_ID < 50600) {
    6     echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
    7     exit(1);
     6    if (!headers_sent()) {
     7        header('HTTP/1.1 500 Internal Server Error');
     8    }
     9    $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
     10    if (!ini_get('display_errors')) {
     11        if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
     12            fwrite(STDERR, $err);
     13        } elseif (!headers_sent()) {
     14            echo $err;
     15        }
     16    }
     17    trigger_error(
     18        $err,
     19        E_USER_ERROR
     20    );
    821}
    922
    1023require_once __DIR__ . '/composer/autoload_real.php';
    1124
    12 return ComposerAutoloaderInit2320d0cacb0d0a86ef0ad7ce85333d57::getLoader();
     25return ComposerAutoloaderInit::getLoader();
  • arvancloud-object-storage/tags/1.2.1/vendor/bin/jp.php

    r2726644 r2930578  
    109109    }
    110110
    111     if (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper')) {
    112         include("phpvfscomposer://" . __DIR__ . '/..'.'/mtdowling/jmespath.php/bin/jp.php');
    113         exit(0);
     111    if (
     112        (function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true))
     113        || (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper'))
     114    ) {
     115        return include("phpvfscomposer://" . __DIR__ . '/..'.'/mtdowling/jmespath.php/bin/jp.php');
    114116    }
    115117}
    116118
    117 include __DIR__ . '/..'.'/mtdowling/jmespath.php/bin/jp.php';
     119include __DIR__ . '/..'.'/mtdowling/jmespath.php/bin/jp.php';
  • arvancloud-object-storage/tags/1.2.1/vendor/composer/ClassLoader.php

    r2655959 r2930578  
    4343class ClassLoader
    4444{
    45     /** @var ?string */
     45    /** @var \Closure(string):void */
     46    private static $includeFile;
     47
     48    /** @var string|null */
    4649    private $vendorDir;
    4750
    4851    // PSR-4
    4952    /**
    50      * @var array[]
    51      * @psalm-var array<string, array<string, int>>
     53     * @var array<string, array<string, int>>
    5254     */
    5355    private $prefixLengthsPsr4 = array();
    5456    /**
    55      * @var array[]
    56      * @psalm-var array<string, array<int, string>>
     57     * @var array<string, list<string>>
    5758     */
    5859    private $prefixDirsPsr4 = array();
    5960    /**
    60      * @var array[]
    61      * @psalm-var array<string, string>
     61     * @var list<string>
    6262     */
    6363    private $fallbackDirsPsr4 = array();
     
    6565    // PSR-0
    6666    /**
    67      * @var array[]
    68      * @psalm-var array<string, array<string, string[]>>
     67     * List of PSR-0 prefixes
     68     *
     69     * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2')))
     70     *
     71     * @var array<string, array<string, list<string>>>
    6972     */
    7073    private $prefixesPsr0 = array();
    7174    /**
    72      * @var array[]
    73      * @psalm-var array<string, string>
     75     * @var list<string>
    7476     */
    7577    private $fallbackDirsPsr0 = array();
     
    7981
    8082    /**
    81      * @var string[]
    82      * @psalm-var array<string, string>
     83     * @var array<string, string>
    8384     */
    8485    private $classMap = array();
     
    8889
    8990    /**
    90      * @var bool[]
    91      * @psalm-var array<string, bool>
     91     * @var array<string, bool>
    9292     */
    9393    private $missingClasses = array();
    9494
    95     /** @var ?string */
     95    /** @var */
    9696    private $apcuPrefix;
    9797
    9898    /**
    99      * @var self[]
     99     * @var
    100100     */
    101101    private static $registeredLoaders = array();
    102102
    103103    /**
    104      * @param ?string $vendorDir
     104     * @param $vendorDir
    105105     */
    106106    public function __construct($vendorDir = null)
    107107    {
    108108        $this->vendorDir = $vendorDir;
    109     }
    110 
    111     /**
    112      * @return string[]
     109        self::initializeIncludeClosure();
     110    }
     111
     112    /**
     113     * @return array<string, list<string>>
    113114     */
    114115    public function getPrefixes()
     
    122123
    123124    /**
    124      * @return array[]
    125      * @psalm-return array<string, array<int, string>>
     125     * @return array<string, list<string>>
    126126     */
    127127    public function getPrefixesPsr4()
     
    131131
    132132    /**
    133      * @return array[]
    134      * @psalm-return array<string, string>
     133     * @return list<string>
    135134     */
    136135    public function getFallbackDirs()
     
    140139
    141140    /**
    142      * @return array[]
    143      * @psalm-return array<string, string>
     141     * @return list<string>
    144142     */
    145143    public function getFallbackDirsPsr4()
     
    149147
    150148    /**
    151      * @return string[] Array of classname => path
    152      * @psalm-return array<string, string>
     149     * @return array<string, string> Array of classname => path
    153150     */
    154151    public function getClassMap()
     
    158155
    159156    /**
    160      * @param string[] $classMap Class to filename map
    161      * @psalm-param array<string, string> $classMap
     157     * @param array<string, string> $classMap Class to filename map
    162158     *
    163159     * @return void
     
    176172     * appending or prepending to the ones previously set for this prefix.
    177173     *
    178      * @param string          $prefix  The prefix
    179      * @param string[]|string $paths   The PSR-0 root directories
    180      * @param bool            $prepend Whether to prepend the directories
     174     * @param string          $prefix  The prefix
     175     * @param |string $paths   The PSR-0 root directories
     176     * @param bool            $prepend Whether to prepend the directories
    181177     *
    182178     * @return void
     
    184180    public function add($prefix, $paths, $prepend = false)
    185181    {
     182
    186183        if (!$prefix) {
    187184            if ($prepend) {
    188185                $this->fallbackDirsPsr0 = array_merge(
    189                     (array) $paths,
     186                    $paths,
    190187                    $this->fallbackDirsPsr0
    191188                );
     
    193190                $this->fallbackDirsPsr0 = array_merge(
    194191                    $this->fallbackDirsPsr0,
    195                     (array) $paths
     192                    $paths
    196193                );
    197194            }
     
    202199        $first = $prefix[0];
    203200        if (!isset($this->prefixesPsr0[$first][$prefix])) {
    204             $this->prefixesPsr0[$first][$prefix] = (array) $paths;
     201            $this->prefixesPsr0[$first][$prefix] = $paths;
    205202
    206203            return;
     
    208205        if ($prepend) {
    209206            $this->prefixesPsr0[$first][$prefix] = array_merge(
    210                 (array) $paths,
     207                $paths,
    211208                $this->prefixesPsr0[$first][$prefix]
    212209            );
     
    214211            $this->prefixesPsr0[$first][$prefix] = array_merge(
    215212                $this->prefixesPsr0[$first][$prefix],
    216                 (array) $paths
     213                $paths
    217214            );
    218215        }
     
    223220     * appending or prepending to the ones previously set for this namespace.
    224221     *
    225      * @param string          $prefix  The prefix/namespace, with trailing '\\'
    226      * @param string[]|string $paths   The PSR-4 base directories
    227      * @param bool            $prepend Whether to prepend the directories
     222     * @param string          $prefix  The prefix/namespace, with trailing '\\'
     223     * @param |string $paths   The PSR-4 base directories
     224     * @param bool            $prepend Whether to prepend the directories
    228225     *
    229226     * @throws \InvalidArgumentException
     
    233230    public function addPsr4($prefix, $paths, $prepend = false)
    234231    {
     232
    235233        if (!$prefix) {
    236234            // Register directories for the root namespace.
    237235            if ($prepend) {
    238236                $this->fallbackDirsPsr4 = array_merge(
    239                     (array) $paths,
     237                    $paths,
    240238                    $this->fallbackDirsPsr4
    241239                );
     
    243241                $this->fallbackDirsPsr4 = array_merge(
    244242                    $this->fallbackDirsPsr4,
    245                     (array) $paths
     243                    $paths
    246244                );
    247245            }
     
    253251            }
    254252            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
    255             $this->prefixDirsPsr4[$prefix] = (array) $paths;
     253            $this->prefixDirsPsr4[$prefix] = $paths;
    256254        } elseif ($prepend) {
    257255            // Prepend directories for an already registered namespace.
    258256            $this->prefixDirsPsr4[$prefix] = array_merge(
    259                 (array) $paths,
     257                $paths,
    260258                $this->prefixDirsPsr4[$prefix]
    261259            );
     
    264262            $this->prefixDirsPsr4[$prefix] = array_merge(
    265263                $this->prefixDirsPsr4[$prefix],
    266                 (array) $paths
     264                $paths
    267265            );
    268266        }
     
    273271     * replacing any others previously set for this prefix.
    274272     *
    275      * @param string          $prefix The prefix
    276      * @param string[]|string $paths  The PSR-0 base directories
     273     * @param string          $prefix The prefix
     274     * @param |string $paths  The PSR-0 base directories
    277275     *
    278276     * @return void
     
    291289     * replacing any others previously set for this namespace.
    292290     *
    293      * @param string          $prefix The prefix/namespace, with trailing '\\'
    294      * @param string[]|string $paths  The PSR-4 base directories
     291     * @param string          $prefix The prefix/namespace, with trailing '\\'
     292     * @param |string $paths  The PSR-4 base directories
    295293     *
    296294     * @throws \InvalidArgumentException
     
    426424    {
    427425        if ($file = $this->findFile($class)) {
    428             includeFile($file);
     426            $includeFile = self::$includeFile;
     427            $includeFile($file);
    429428
    430429            return true;
     
    477476
    478477    /**
    479      * Returns the currently registered loaders indexed by their corresponding vendor directories.
    480      *
    481      * @return self[]
     478     * Returns the currently registered loaders ed by their corresponding vendor directories.
     479     *
     480     * @return
    482481     */
    483482    public static function getRegisteredLoaders()
     
    556555        return false;
    557556    }
     557
     558
     559
     560
     561
     562
     563
     564
     565
     566
     567
     568
     569
     570
     571
     572
     573
     574
     575
     576
     577
     578
    558579}
    559 
    560 /**
    561  * Scope isolated include.
    562  *
    563  * Prevents access to $this/self from included files.
    564  *
    565  * @param  string $file
    566  * @return void
    567  * @private
    568  */
    569 function includeFile($file)
    570 {
    571     include $file;
    572 }
  • arvancloud-object-storage/tags/1.2.1/vendor/composer/InstalledVersions.php

    r2726644 r2930578  
    2929    /**
    3030     * @var mixed[]|null
    31      * @psalm-var array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}|array{}|null
     31     * @psalm-var array{root: array{name: string, }>}|array{}|null
    3232     */
    3333    private static $installed;
     
    4040    /**
    4141     * @var array[]
    42      * @psalm-var array<string, array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
     42     * @psalm-var array<string, array{root: array{name: string, }>}>
    4343     */
    4444    private static $installedByVendor = array();
     
    9999        foreach (self::getInstalled() as $installed) {
    100100            if (isset($installed['versions'][$packageName])) {
    101                 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);
     101                return $includeDevRequirements || ;
    102102            }
    103103        }
     
    120120    public static function satisfies(VersionParser $parser, $packageName, $constraint)
    121121    {
    122         $constraint = $parser->parseConstraints($constraint);
     122        $constraint = $parser->parseConstraints($constraint);
    123123        $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
    124124
     
    244244    /**
    245245     * @return array
    246      * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}
     246     * @psalm-return array{name: string, }
    247247     */
    248248    public static function getRootPackage()
     
    258258     * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
    259259     * @return array[]
    260      * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}
     260     * @psalm-return array{root: array{name: string, }>}
    261261     */
    262262    public static function getRawData()
     
    281281     *
    282282     * @return array[]
    283      * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
     283     * @psalm-return list<array{root: array{name: string, }>}>
    284284     */
    285285    public static function getAllRawData()
     
    304304     * @return void
    305305     *
    306      * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>} $data
     306     * @psalm-param array{root: array{name: string, }>} $data
    307307     */
    308308    public static function reload($data)
     
    314314    /**
    315315     * @return array[]
    316      * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
     316     * @psalm-return list<array{root: array{name: string, }>}>
    317317     */
    318318    private static function getInstalled()
     
    329329                    $installed[] = self::$installedByVendor[$vendorDir];
    330330                } elseif (is_file($vendorDir.'/composer/installed.php')) {
    331                     $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php';
     331                    /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
     332                    $required = require $vendorDir.'/composer/installed.php';
     333                    $installed[] = self::$installedByVendor[$vendorDir] = $required;
    332334                    if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
    333335                        self::$installed = $installed[count($installed) - 1];
     
    341343            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
    342344            if (substr(__DIR__, -8, 1) !== 'C') {
    343                 self::$installed = require __DIR__ . '/installed.php';
     345                /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
     346                $required = require __DIR__ . '/installed.php';
     347                self::$installed = $required;
    344348            } else {
    345349                self::$installed = array();
    346350            }
    347351        }
    348         $installed[] = self::$installed;
     352
     353        if (self::$installed !== array()) {
     354            $installed[] = self::$installed;
     355        }
    349356
    350357        return $installed;
  • arvancloud-object-storage/tags/1.2.1/vendor/composer/autoload_real.php

    r2924945 r2930578  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit2320d0cacb0d0a86ef0ad7ce85333d57
     5class ComposerAutoloaderInit
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit2320d0cacb0d0a86ef0ad7ce85333d57', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit2320d0cacb0d0a86ef0ad7ce85333d57', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit2320d0cacb0d0a86ef0ad7ce85333d57::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $includeFiles = \Composer\Autoload\ComposerStaticInit2320d0cacb0d0a86ef0ad7ce85333d57::$files;
    37         foreach ($includeFiles as $fileIdentifier => $file) {
    38             composerRequire2320d0cacb0d0a86ef0ad7ce85333d57($fileIdentifier, $file);
     36        $filesToLoad = \Composer\Autoload\ComposerStaticInit33964418be296e6a1563f762a0933af4::$files;
     37        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
     38            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
     39                $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
     40
     41                require $file;
     42            }
     43        }, null, null);
     44        foreach ($filesToLoad as $fileIdentifier => $file) {
     45            $requireFile($fileIdentifier, $file);
    3946        }
    4047
     
    4249    }
    4350}
    44 
    45 /**
    46  * @param string $fileIdentifier
    47  * @param string $file
    48  * @return void
    49  */
    50 function composerRequire2320d0cacb0d0a86ef0ad7ce85333d57($fileIdentifier, $file)
    51 {
    52     if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
    53         $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
    54 
    55         require $file;
    56     }
    57 }
  • arvancloud-object-storage/tags/1.2.1/vendor/composer/autoload_static.php

    r2924945 r2930578  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit2320d0cacb0d0a86ef0ad7ce85333d57
     7class ComposerStaticInit
    88{
    99    public static $files = array (
     
    11611161    {
    11621162        return \Closure::bind(function () use ($loader) {
    1163             $loader->prefixLengthsPsr4 = ComposerStaticInit2320d0cacb0d0a86ef0ad7ce85333d57::$prefixLengthsPsr4;
    1164             $loader->prefixDirsPsr4 = ComposerStaticInit2320d0cacb0d0a86ef0ad7ce85333d57::$prefixDirsPsr4;
    1165             $loader->classMap = ComposerStaticInit2320d0cacb0d0a86ef0ad7ce85333d57::$classMap;
     1163            $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4;
     1164            $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4;
     1165            $loader->classMap = ComposerStaticInit::$classMap;
    11661166
    11671167        }, null, ClassLoader::class);
  • arvancloud-object-storage/tags/1.2.1/vendor/composer/installed.php

    r2924945 r2930578  
    11<?php return array(
    22    'root' => array(
     3
    34        'pretty_version' => 'dev-master',
    45        'version' => 'dev-master',
     6
    57        'type' => 'library',
    68        'install_path' => __DIR__ . '/../../',
    79        'aliases' => array(),
    8         'reference' => 'ebed57a98adf3f1fc37144c33a1bbe5c33d4ac03',
    9         'name' => 'khorshid/arvancloud-storage-for-wordpress',
    1010        'dev' => true,
    1111    ),
     
    1414            'pretty_version' => 'v1.0.2',
    1515            'version' => '1.0.2.0',
     16
    1617            'type' => 'library',
    1718            'install_path' => __DIR__ . '/../aws/aws-crt-php',
    1819            'aliases' => array(),
    19             'reference' => '3942776a8c99209908ee0b287746263725685732',
    2020            'dev_requirement' => false,
    2121        ),
     
    2323            'pretty_version' => '3.241.0',
    2424            'version' => '3.241.0.0',
     25
    2526            'type' => 'library',
    2627            'install_path' => __DIR__ . '/../aws/aws-sdk-php',
    2728            'aliases' => array(),
    28             'reference' => '9a08ac83249a2e6d07c624802cbf961f7269a691',
    2929            'dev_requirement' => false,
    3030        ),
     
    3232            'pretty_version' => '7.5.0',
    3333            'version' => '7.5.0.0',
     34
    3435            'type' => 'library',
    3536            'install_path' => __DIR__ . '/../guzzlehttp/guzzle',
    3637            'aliases' => array(),
    37             'reference' => 'b50a2a1251152e43f6a37f0fa053e730a67d25ba',
    3838            'dev_requirement' => false,
    3939        ),
     
    4141            'pretty_version' => '1.5.2',
    4242            'version' => '1.5.2.0',
     43
    4344            'type' => 'library',
    4445            'install_path' => __DIR__ . '/../guzzlehttp/promises',
    4546            'aliases' => array(),
    46             'reference' => 'b94b2807d85443f9719887892882d0329d1e2598',
    4747            'dev_requirement' => false,
    4848        ),
     
    5050            'pretty_version' => '2.4.3',
    5151            'version' => '2.4.3.0',
     52
    5253            'type' => 'library',
    5354            'install_path' => __DIR__ . '/../guzzlehttp/psr7',
    5455            'aliases' => array(),
    55             'reference' => '67c26b443f348a51926030c83481b85718457d3d',
    5656            'dev_requirement' => false,
    5757        ),
     
    5959            'pretty_version' => 'dev-master',
    6060            'version' => 'dev-master',
     61
    6162            'type' => 'library',
    6263            'install_path' => __DIR__ . '/../../',
    6364            'aliases' => array(),
    64             'reference' => 'ebed57a98adf3f1fc37144c33a1bbe5c33d4ac03',
    6565            'dev_requirement' => false,
    6666        ),
     
    6868            'pretty_version' => 'v1.0.1',
    6969            'version' => '1.0.1.0',
     70
    7071            'type' => 'library',
    7172            'install_path' => __DIR__ . '/../khorshid/wp-encrypt',
    7273            'aliases' => array(),
    73             'reference' => '67cc7ded5f0319845a917ff7dcaa36349512cac8',
    7474            'dev_requirement' => false,
    7575        ),
     
    7777            'pretty_version' => '2.6.1',
    7878            'version' => '2.6.1.0',
     79
    7980            'type' => 'library',
    8081            'install_path' => __DIR__ . '/../mtdowling/jmespath.php',
    8182            'aliases' => array(),
    82             'reference' => '9b87907a81b87bc76d19a7fb2d61e61486ee9edb',
    8383            'dev_requirement' => false,
    8484        ),
     
    8686            'pretty_version' => '1.0.1',
    8787            'version' => '1.0.1.0',
     88
    8889            'type' => 'library',
    8990            'install_path' => __DIR__ . '/../psr/http-client',
    9091            'aliases' => array(),
    91             'reference' => '2dfb5f6c5eff0e91e20e913f8c5452ed95b86621',
    9292            'dev_requirement' => false,
    9393        ),
     
    101101            'pretty_version' => '1.0.1',
    102102            'version' => '1.0.1.0',
     103
    103104            'type' => 'library',
    104105            'install_path' => __DIR__ . '/../psr/http-factory',
    105106            'aliases' => array(),
    106             'reference' => '12ac7fcd07e5b077433f5f2bee95b3a771bf61be',
    107107            'dev_requirement' => false,
    108108        ),
     
    116116            'pretty_version' => '1.0.1',
    117117            'version' => '1.0.1.0',
     118
    118119            'type' => 'library',
    119120            'install_path' => __DIR__ . '/../psr/http-message',
    120121            'aliases' => array(),
    121             'reference' => 'f6561bf28d520154e4b0ec72be95418abe6d9363',
    122122            'dev_requirement' => false,
    123123        ),
     
    131131            'pretty_version' => '3.0.3',
    132132            'version' => '3.0.3.0',
     133
    133134            'type' => 'library',
    134135            'install_path' => __DIR__ . '/../ralouphie/getallheaders',
    135136            'aliases' => array(),
    136             'reference' => '120b605dfeb996808c31b6477290a714d356e822',
    137137            'dev_requirement' => false,
    138138        ),
     
    140140            'pretty_version' => 'v2.5.2',
    141141            'version' => '2.5.2.0',
     142
    142143            'type' => 'library',
    143144            'install_path' => __DIR__ . '/../symfony/deprecation-contracts',
    144145            'aliases' => array(),
    145             'reference' => 'e8b495ea28c1d97b5e0c121748d6f9b53d075c66',
    146146            'dev_requirement' => false,
    147147        ),
     
    149149            'pretty_version' => 'v1.20.0',
    150150            'version' => '1.20.0.0',
     151
    151152            'type' => 'library',
    152153            'install_path' => __DIR__ . '/../symfony/polyfill-mbstring',
    153154            'aliases' => array(),
    154             'reference' => '39d483bdf39be819deabf04ec872eb0b2410b531',
    155155            'dev_requirement' => false,
    156156        ),
     
    158158            'pretty_version' => '3.5.2',
    159159            'version' => '3.5.2.0',
     160
    160161            'type' => 'wordpress-plugin',
    161162            'install_path' => __DIR__ . '/../woocommerce/action-scheduler',
    162163            'aliases' => array(),
    163             'reference' => '519cfa20db89eb85511cad08301d3fa33522ed8b',
    164164            'dev_requirement' => false,
    165165        ),
  • arvancloud-object-storage/tags/1.2.1/wp-arvancloud-storage.php

    r2924945 r2930578  
    1010 * Plugin URI:        https://www.arvancloud.com/fa/products/cloud-storage
    1111 * Description:       Using ArvanCloud Storage Plugin you can offload, back up and upload your WordPress files and databases directly to your ArvanCloud object storage bucket. This easy-to-use plugin allows you to back up, restore and store your files simply and securely to a cost-effective, unlimited cloud storage. No need for expensive hosting services anymore.
    12  * Version:           1.2.0
     12 * Version:           1.2.
    1313 * Author:            Khorshid, ArvanCloud
    1414 * Author URI:        https://www.arvancloud.com/en/products/cloud-storage
     
    2828}
    2929
    30 define( 'ACS_VERSION', '1.2.0' );
     30define( 'ACS_VERSION', '1.2.' );
    3131define( 'ACS_NAME', __( 'ArvanCloud Storage', 'arvancloud-object-storage' ) );
    3232define( 'ACS_SLUG', 'wp-arvancloud-storage');
  • arvancloud-object-storage/trunk/README.txt

    r2924945 r2930578  
    55Tested up to: 6.2
    66Requires PHP: 7.1
    7 Stable tag: 1.2.0
     7Stable tag: 1.2.
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    4848
    4949== Changelog ==
     50
     51
     52
    5053= 1.2.0 - 2023-06-12 =
    5154* Add new feature: Delete object from storage when deleted in WordPress
  • arvancloud-object-storage/trunk/inc/Admin/Admin.php

    r2924945 r2930578  
    441441    public function upload_media_to_storage( $post_id, $force_upload = false ) {
    442442
     443
     444
     445
     446
     447
     448
     449
     450
     451
     452
     453
     454
    443455        if( !$this->bucket_name ) {
    444456            return;
     
    521533    public function upload_image_to_storage( $args ) {
    522534
     535
     536
     537
     538
     539
     540
     541
     542
     543
     544
     545
     546
     547
    523548        $upload_dir = wp_upload_dir();
    524549        $basename   = basename( $args['file'] );
  • arvancloud-object-storage/trunk/vendor/autoload.php

    r2924945 r2930578  
    44
    55if (PHP_VERSION_ID < 50600) {
    6     echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
    7     exit(1);
     6    if (!headers_sent()) {
     7        header('HTTP/1.1 500 Internal Server Error');
     8    }
     9    $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
     10    if (!ini_get('display_errors')) {
     11        if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
     12            fwrite(STDERR, $err);
     13        } elseif (!headers_sent()) {
     14            echo $err;
     15        }
     16    }
     17    trigger_error(
     18        $err,
     19        E_USER_ERROR
     20    );
    821}
    922
    1023require_once __DIR__ . '/composer/autoload_real.php';
    1124
    12 return ComposerAutoloaderInit2320d0cacb0d0a86ef0ad7ce85333d57::getLoader();
     25return ComposerAutoloaderInit::getLoader();
  • arvancloud-object-storage/trunk/vendor/bin/jp.php

    r2726644 r2930578  
    109109    }
    110110
    111     if (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper')) {
    112         include("phpvfscomposer://" . __DIR__ . '/..'.'/mtdowling/jmespath.php/bin/jp.php');
    113         exit(0);
     111    if (
     112        (function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true))
     113        || (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper'))
     114    ) {
     115        return include("phpvfscomposer://" . __DIR__ . '/..'.'/mtdowling/jmespath.php/bin/jp.php');
    114116    }
    115117}
    116118
    117 include __DIR__ . '/..'.'/mtdowling/jmespath.php/bin/jp.php';
     119include __DIR__ . '/..'.'/mtdowling/jmespath.php/bin/jp.php';
  • arvancloud-object-storage/trunk/vendor/composer/ClassLoader.php

    r2655959 r2930578  
    4343class ClassLoader
    4444{
    45     /** @var ?string */
     45    /** @var \Closure(string):void */
     46    private static $includeFile;
     47
     48    /** @var string|null */
    4649    private $vendorDir;
    4750
    4851    // PSR-4
    4952    /**
    50      * @var array[]
    51      * @psalm-var array<string, array<string, int>>
     53     * @var array<string, array<string, int>>
    5254     */
    5355    private $prefixLengthsPsr4 = array();
    5456    /**
    55      * @var array[]
    56      * @psalm-var array<string, array<int, string>>
     57     * @var array<string, list<string>>
    5758     */
    5859    private $prefixDirsPsr4 = array();
    5960    /**
    60      * @var array[]
    61      * @psalm-var array<string, string>
     61     * @var list<string>
    6262     */
    6363    private $fallbackDirsPsr4 = array();
     
    6565    // PSR-0
    6666    /**
    67      * @var array[]
    68      * @psalm-var array<string, array<string, string[]>>
     67     * List of PSR-0 prefixes
     68     *
     69     * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2')))
     70     *
     71     * @var array<string, array<string, list<string>>>
    6972     */
    7073    private $prefixesPsr0 = array();
    7174    /**
    72      * @var array[]
    73      * @psalm-var array<string, string>
     75     * @var list<string>
    7476     */
    7577    private $fallbackDirsPsr0 = array();
     
    7981
    8082    /**
    81      * @var string[]
    82      * @psalm-var array<string, string>
     83     * @var array<string, string>
    8384     */
    8485    private $classMap = array();
     
    8889
    8990    /**
    90      * @var bool[]
    91      * @psalm-var array<string, bool>
     91     * @var array<string, bool>
    9292     */
    9393    private $missingClasses = array();
    9494
    95     /** @var ?string */
     95    /** @var */
    9696    private $apcuPrefix;
    9797
    9898    /**
    99      * @var self[]
     99     * @var
    100100     */
    101101    private static $registeredLoaders = array();
    102102
    103103    /**
    104      * @param ?string $vendorDir
     104     * @param $vendorDir
    105105     */
    106106    public function __construct($vendorDir = null)
    107107    {
    108108        $this->vendorDir = $vendorDir;
    109     }
    110 
    111     /**
    112      * @return string[]
     109        self::initializeIncludeClosure();
     110    }
     111
     112    /**
     113     * @return array<string, list<string>>
    113114     */
    114115    public function getPrefixes()
     
    122123
    123124    /**
    124      * @return array[]
    125      * @psalm-return array<string, array<int, string>>
     125     * @return array<string, list<string>>
    126126     */
    127127    public function getPrefixesPsr4()
     
    131131
    132132    /**
    133      * @return array[]
    134      * @psalm-return array<string, string>
     133     * @return list<string>
    135134     */
    136135    public function getFallbackDirs()
     
    140139
    141140    /**
    142      * @return array[]
    143      * @psalm-return array<string, string>
     141     * @return list<string>
    144142     */
    145143    public function getFallbackDirsPsr4()
     
    149147
    150148    /**
    151      * @return string[] Array of classname => path
    152      * @psalm-return array<string, string>
     149     * @return array<string, string> Array of classname => path
    153150     */
    154151    public function getClassMap()
     
    158155
    159156    /**
    160      * @param string[] $classMap Class to filename map
    161      * @psalm-param array<string, string> $classMap
     157     * @param array<string, string> $classMap Class to filename map
    162158     *
    163159     * @return void
     
    176172     * appending or prepending to the ones previously set for this prefix.
    177173     *
    178      * @param string          $prefix  The prefix
    179      * @param string[]|string $paths   The PSR-0 root directories
    180      * @param bool            $prepend Whether to prepend the directories
     174     * @param string          $prefix  The prefix
     175     * @param |string $paths   The PSR-0 root directories
     176     * @param bool            $prepend Whether to prepend the directories
    181177     *
    182178     * @return void
     
    184180    public function add($prefix, $paths, $prepend = false)
    185181    {
     182
    186183        if (!$prefix) {
    187184            if ($prepend) {
    188185                $this->fallbackDirsPsr0 = array_merge(
    189                     (array) $paths,
     186                    $paths,
    190187                    $this->fallbackDirsPsr0
    191188                );
     
    193190                $this->fallbackDirsPsr0 = array_merge(
    194191                    $this->fallbackDirsPsr0,
    195                     (array) $paths
     192                    $paths
    196193                );
    197194            }
     
    202199        $first = $prefix[0];
    203200        if (!isset($this->prefixesPsr0[$first][$prefix])) {
    204             $this->prefixesPsr0[$first][$prefix] = (array) $paths;
     201            $this->prefixesPsr0[$first][$prefix] = $paths;
    205202
    206203            return;
     
    208205        if ($prepend) {
    209206            $this->prefixesPsr0[$first][$prefix] = array_merge(
    210                 (array) $paths,
     207                $paths,
    211208                $this->prefixesPsr0[$first][$prefix]
    212209            );
     
    214211            $this->prefixesPsr0[$first][$prefix] = array_merge(
    215212                $this->prefixesPsr0[$first][$prefix],
    216                 (array) $paths
     213                $paths
    217214            );
    218215        }
     
    223220     * appending or prepending to the ones previously set for this namespace.
    224221     *
    225      * @param string          $prefix  The prefix/namespace, with trailing '\\'
    226      * @param string[]|string $paths   The PSR-4 base directories
    227      * @param bool            $prepend Whether to prepend the directories
     222     * @param string          $prefix  The prefix/namespace, with trailing '\\'
     223     * @param |string $paths   The PSR-4 base directories
     224     * @param bool            $prepend Whether to prepend the directories
    228225     *
    229226     * @throws \InvalidArgumentException
     
    233230    public function addPsr4($prefix, $paths, $prepend = false)
    234231    {
     232
    235233        if (!$prefix) {
    236234            // Register directories for the root namespace.
    237235            if ($prepend) {
    238236                $this->fallbackDirsPsr4 = array_merge(
    239                     (array) $paths,
     237                    $paths,
    240238                    $this->fallbackDirsPsr4
    241239                );
     
    243241                $this->fallbackDirsPsr4 = array_merge(
    244242                    $this->fallbackDirsPsr4,
    245                     (array) $paths
     243                    $paths
    246244                );
    247245            }
     
    253251            }
    254252            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
    255             $this->prefixDirsPsr4[$prefix] = (array) $paths;
     253            $this->prefixDirsPsr4[$prefix] = $paths;
    256254        } elseif ($prepend) {
    257255            // Prepend directories for an already registered namespace.
    258256            $this->prefixDirsPsr4[$prefix] = array_merge(
    259                 (array) $paths,
     257                $paths,
    260258                $this->prefixDirsPsr4[$prefix]
    261259            );
     
    264262            $this->prefixDirsPsr4[$prefix] = array_merge(
    265263                $this->prefixDirsPsr4[$prefix],
    266                 (array) $paths
     264                $paths
    267265            );
    268266        }
     
    273271     * replacing any others previously set for this prefix.
    274272     *
    275      * @param string          $prefix The prefix
    276      * @param string[]|string $paths  The PSR-0 base directories
     273     * @param string          $prefix The prefix
     274     * @param |string $paths  The PSR-0 base directories
    277275     *
    278276     * @return void
     
    291289     * replacing any others previously set for this namespace.
    292290     *
    293      * @param string          $prefix The prefix/namespace, with trailing '\\'
    294      * @param string[]|string $paths  The PSR-4 base directories
     291     * @param string          $prefix The prefix/namespace, with trailing '\\'
     292     * @param |string $paths  The PSR-4 base directories
    295293     *
    296294     * @throws \InvalidArgumentException
     
    426424    {
    427425        if ($file = $this->findFile($class)) {
    428             includeFile($file);
     426            $includeFile = self::$includeFile;
     427            $includeFile($file);
    429428
    430429            return true;
     
    477476
    478477    /**
    479      * Returns the currently registered loaders indexed by their corresponding vendor directories.
    480      *
    481      * @return self[]
     478     * Returns the currently registered loaders ed by their corresponding vendor directories.
     479     *
     480     * @return
    482481     */
    483482    public static function getRegisteredLoaders()
     
    556555        return false;
    557556    }
     557
     558
     559
     560
     561
     562
     563
     564
     565
     566
     567
     568
     569
     570
     571
     572
     573
     574
     575
     576
     577
     578
    558579}
    559 
    560 /**
    561  * Scope isolated include.
    562  *
    563  * Prevents access to $this/self from included files.
    564  *
    565  * @param  string $file
    566  * @return void
    567  * @private
    568  */
    569 function includeFile($file)
    570 {
    571     include $file;
    572 }
  • arvancloud-object-storage/trunk/vendor/composer/InstalledVersions.php

    r2726644 r2930578  
    2929    /**
    3030     * @var mixed[]|null
    31      * @psalm-var array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}|array{}|null
     31     * @psalm-var array{root: array{name: string, }>}|array{}|null
    3232     */
    3333    private static $installed;
     
    4040    /**
    4141     * @var array[]
    42      * @psalm-var array<string, array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
     42     * @psalm-var array<string, array{root: array{name: string, }>}>
    4343     */
    4444    private static $installedByVendor = array();
     
    9999        foreach (self::getInstalled() as $installed) {
    100100            if (isset($installed['versions'][$packageName])) {
    101                 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);
     101                return $includeDevRequirements || ;
    102102            }
    103103        }
     
    120120    public static function satisfies(VersionParser $parser, $packageName, $constraint)
    121121    {
    122         $constraint = $parser->parseConstraints($constraint);
     122        $constraint = $parser->parseConstraints($constraint);
    123123        $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
    124124
     
    244244    /**
    245245     * @return array
    246      * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}
     246     * @psalm-return array{name: string, }
    247247     */
    248248    public static function getRootPackage()
     
    258258     * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
    259259     * @return array[]
    260      * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}
     260     * @psalm-return array{root: array{name: string, }>}
    261261     */
    262262    public static function getRawData()
     
    281281     *
    282282     * @return array[]
    283      * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
     283     * @psalm-return list<array{root: array{name: string, }>}>
    284284     */
    285285    public static function getAllRawData()
     
    304304     * @return void
    305305     *
    306      * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>} $data
     306     * @psalm-param array{root: array{name: string, }>} $data
    307307     */
    308308    public static function reload($data)
     
    314314    /**
    315315     * @return array[]
    316      * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
     316     * @psalm-return list<array{root: array{name: string, }>}>
    317317     */
    318318    private static function getInstalled()
     
    329329                    $installed[] = self::$installedByVendor[$vendorDir];
    330330                } elseif (is_file($vendorDir.'/composer/installed.php')) {
    331                     $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php';
     331                    /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
     332                    $required = require $vendorDir.'/composer/installed.php';
     333                    $installed[] = self::$installedByVendor[$vendorDir] = $required;
    332334                    if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
    333335                        self::$installed = $installed[count($installed) - 1];
     
    341343            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
    342344            if (substr(__DIR__, -8, 1) !== 'C') {
    343                 self::$installed = require __DIR__ . '/installed.php';
     345                /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
     346                $required = require __DIR__ . '/installed.php';
     347                self::$installed = $required;
    344348            } else {
    345349                self::$installed = array();
    346350            }
    347351        }
    348         $installed[] = self::$installed;
     352
     353        if (self::$installed !== array()) {
     354            $installed[] = self::$installed;
     355        }
    349356
    350357        return $installed;
  • arvancloud-object-storage/trunk/vendor/composer/autoload_real.php

    r2924945 r2930578  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit2320d0cacb0d0a86ef0ad7ce85333d57
     5class ComposerAutoloaderInit
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit2320d0cacb0d0a86ef0ad7ce85333d57', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit2320d0cacb0d0a86ef0ad7ce85333d57', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit2320d0cacb0d0a86ef0ad7ce85333d57::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $includeFiles = \Composer\Autoload\ComposerStaticInit2320d0cacb0d0a86ef0ad7ce85333d57::$files;
    37         foreach ($includeFiles as $fileIdentifier => $file) {
    38             composerRequire2320d0cacb0d0a86ef0ad7ce85333d57($fileIdentifier, $file);
     36        $filesToLoad = \Composer\Autoload\ComposerStaticInit33964418be296e6a1563f762a0933af4::$files;
     37        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
     38            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
     39                $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
     40
     41                require $file;
     42            }
     43        }, null, null);
     44        foreach ($filesToLoad as $fileIdentifier => $file) {
     45            $requireFile($fileIdentifier, $file);
    3946        }
    4047
     
    4249    }
    4350}
    44 
    45 /**
    46  * @param string $fileIdentifier
    47  * @param string $file
    48  * @return void
    49  */
    50 function composerRequire2320d0cacb0d0a86ef0ad7ce85333d57($fileIdentifier, $file)
    51 {
    52     if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
    53         $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
    54 
    55         require $file;
    56     }
    57 }
  • arvancloud-object-storage/trunk/vendor/composer/autoload_static.php

    r2924945 r2930578  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit2320d0cacb0d0a86ef0ad7ce85333d57
     7class ComposerStaticInit
    88{
    99    public static $files = array (
     
    11611161    {
    11621162        return \Closure::bind(function () use ($loader) {
    1163             $loader->prefixLengthsPsr4 = ComposerStaticInit2320d0cacb0d0a86ef0ad7ce85333d57::$prefixLengthsPsr4;
    1164             $loader->prefixDirsPsr4 = ComposerStaticInit2320d0cacb0d0a86ef0ad7ce85333d57::$prefixDirsPsr4;
    1165             $loader->classMap = ComposerStaticInit2320d0cacb0d0a86ef0ad7ce85333d57::$classMap;
     1163            $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4;
     1164            $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4;
     1165            $loader->classMap = ComposerStaticInit::$classMap;
    11661166
    11671167        }, null, ClassLoader::class);
  • arvancloud-object-storage/trunk/vendor/composer/installed.php

    r2924945 r2930578  
    11<?php return array(
    22    'root' => array(
     3
    34        'pretty_version' => 'dev-master',
    45        'version' => 'dev-master',
     6
    57        'type' => 'library',
    68        'install_path' => __DIR__ . '/../../',
    79        'aliases' => array(),
    8         'reference' => 'ebed57a98adf3f1fc37144c33a1bbe5c33d4ac03',
    9         'name' => 'khorshid/arvancloud-storage-for-wordpress',
    1010        'dev' => true,
    1111    ),
     
    1414            'pretty_version' => 'v1.0.2',
    1515            'version' => '1.0.2.0',
     16
    1617            'type' => 'library',
    1718            'install_path' => __DIR__ . '/../aws/aws-crt-php',
    1819            'aliases' => array(),
    19             'reference' => '3942776a8c99209908ee0b287746263725685732',
    2020            'dev_requirement' => false,
    2121        ),
     
    2323            'pretty_version' => '3.241.0',
    2424            'version' => '3.241.0.0',
     25
    2526            'type' => 'library',
    2627            'install_path' => __DIR__ . '/../aws/aws-sdk-php',
    2728            'aliases' => array(),
    28             'reference' => '9a08ac83249a2e6d07c624802cbf961f7269a691',
    2929            'dev_requirement' => false,
    3030        ),
     
    3232            'pretty_version' => '7.5.0',
    3333            'version' => '7.5.0.0',
     34
    3435            'type' => 'library',
    3536            'install_path' => __DIR__ . '/../guzzlehttp/guzzle',
    3637            'aliases' => array(),
    37             'reference' => 'b50a2a1251152e43f6a37f0fa053e730a67d25ba',
    3838            'dev_requirement' => false,
    3939        ),
     
    4141            'pretty_version' => '1.5.2',
    4242            'version' => '1.5.2.0',
     43
    4344            'type' => 'library',
    4445            'install_path' => __DIR__ . '/../guzzlehttp/promises',
    4546            'aliases' => array(),
    46             'reference' => 'b94b2807d85443f9719887892882d0329d1e2598',
    4747            'dev_requirement' => false,
    4848        ),
     
    5050            'pretty_version' => '2.4.3',
    5151            'version' => '2.4.3.0',
     52
    5253            'type' => 'library',
    5354            'install_path' => __DIR__ . '/../guzzlehttp/psr7',
    5455            'aliases' => array(),
    55             'reference' => '67c26b443f348a51926030c83481b85718457d3d',
    5656            'dev_requirement' => false,
    5757        ),
     
    5959            'pretty_version' => 'dev-master',
    6060            'version' => 'dev-master',
     61
    6162            'type' => 'library',
    6263            'install_path' => __DIR__ . '/../../',
    6364            'aliases' => array(),
    64             'reference' => 'ebed57a98adf3f1fc37144c33a1bbe5c33d4ac03',
    6565            'dev_requirement' => false,
    6666        ),
     
    6868            'pretty_version' => 'v1.0.1',
    6969            'version' => '1.0.1.0',
     70
    7071            'type' => 'library',
    7172            'install_path' => __DIR__ . '/../khorshid/wp-encrypt',
    7273            'aliases' => array(),
    73             'reference' => '67cc7ded5f0319845a917ff7dcaa36349512cac8',
    7474            'dev_requirement' => false,
    7575        ),
     
    7777            'pretty_version' => '2.6.1',
    7878            'version' => '2.6.1.0',
     79
    7980            'type' => 'library',
    8081            'install_path' => __DIR__ . '/../mtdowling/jmespath.php',
    8182            'aliases' => array(),
    82             'reference' => '9b87907a81b87bc76d19a7fb2d61e61486ee9edb',
    8383            'dev_requirement' => false,
    8484        ),
     
    8686            'pretty_version' => '1.0.1',
    8787            'version' => '1.0.1.0',
     88
    8889            'type' => 'library',
    8990            'install_path' => __DIR__ . '/../psr/http-client',
    9091            'aliases' => array(),
    91             'reference' => '2dfb5f6c5eff0e91e20e913f8c5452ed95b86621',
    9292            'dev_requirement' => false,
    9393        ),
     
    101101            'pretty_version' => '1.0.1',
    102102            'version' => '1.0.1.0',
     103
    103104            'type' => 'library',
    104105            'install_path' => __DIR__ . '/../psr/http-factory',
    105106            'aliases' => array(),
    106             'reference' => '12ac7fcd07e5b077433f5f2bee95b3a771bf61be',
    107107            'dev_requirement' => false,
    108108        ),
     
    116116            'pretty_version' => '1.0.1',
    117117            'version' => '1.0.1.0',
     118
    118119            'type' => 'library',
    119120            'install_path' => __DIR__ . '/../psr/http-message',
    120121            'aliases' => array(),
    121             'reference' => 'f6561bf28d520154e4b0ec72be95418abe6d9363',
    122122            'dev_requirement' => false,
    123123        ),
     
    131131            'pretty_version' => '3.0.3',
    132132            'version' => '3.0.3.0',
     133
    133134            'type' => 'library',
    134135            'install_path' => __DIR__ . '/../ralouphie/getallheaders',
    135136            'aliases' => array(),
    136             'reference' => '120b605dfeb996808c31b6477290a714d356e822',
    137137            'dev_requirement' => false,
    138138        ),
     
    140140            'pretty_version' => 'v2.5.2',
    141141            'version' => '2.5.2.0',
     142
    142143            'type' => 'library',
    143144            'install_path' => __DIR__ . '/../symfony/deprecation-contracts',
    144145            'aliases' => array(),
    145             'reference' => 'e8b495ea28c1d97b5e0c121748d6f9b53d075c66',
    146146            'dev_requirement' => false,
    147147        ),
     
    149149            'pretty_version' => 'v1.20.0',
    150150            'version' => '1.20.0.0',
     151
    151152            'type' => 'library',
    152153            'install_path' => __DIR__ . '/../symfony/polyfill-mbstring',
    153154            'aliases' => array(),
    154             'reference' => '39d483bdf39be819deabf04ec872eb0b2410b531',
    155155            'dev_requirement' => false,
    156156        ),
     
    158158            'pretty_version' => '3.5.2',
    159159            'version' => '3.5.2.0',
     160
    160161            'type' => 'wordpress-plugin',
    161162            'install_path' => __DIR__ . '/../woocommerce/action-scheduler',
    162163            'aliases' => array(),
    163             'reference' => '519cfa20db89eb85511cad08301d3fa33522ed8b',
    164164            'dev_requirement' => false,
    165165        ),
  • arvancloud-object-storage/trunk/wp-arvancloud-storage.php

    r2924945 r2930578  
    1010 * Plugin URI:        https://www.arvancloud.com/fa/products/cloud-storage
    1111 * Description:       Using ArvanCloud Storage Plugin you can offload, back up and upload your WordPress files and databases directly to your ArvanCloud object storage bucket. This easy-to-use plugin allows you to back up, restore and store your files simply and securely to a cost-effective, unlimited cloud storage. No need for expensive hosting services anymore.
    12  * Version:           1.2.0
     12 * Version:           1.2.
    1313 * Author:            Khorshid, ArvanCloud
    1414 * Author URI:        https://www.arvancloud.com/en/products/cloud-storage
     
    2828}
    2929
    30 define( 'ACS_VERSION', '1.2.0' );
     30define( 'ACS_VERSION', '1.2.' );
    3131define( 'ACS_NAME', __( 'ArvanCloud Storage', 'arvancloud-object-storage' ) );
    3232define( 'ACS_SLUG', 'wp-arvancloud-storage');
Note: See TracChangeset for help on using the changeset viewer.