Plugin Directory

Changeset 3257296


Ignore:
Timestamp:
03/17/2025 05:28:04 PM (13 months ago)
Author:
ilovepdf
Message:

Update to version 2.2.9 from GitHub

Location:
iloveimg
Files:
42 edited
1 copied

Legend:

Unmodified
Added
Removed
  • iloveimg/tags/2.2.9/.gitignore

    r3165770 r3257296  
    1212composer.lock
    1313package-lock.json
    14 dev/package-lock.json
    1514
    1615# Compiled Java class files
     
    4241*.exe
    4342*.war
     43*.zip
    4444
    4545# Large media files
  • iloveimg/tags/2.2.9/admin/Ilove_Img_Compress_Plugin.php

    r3256112 r3257296  
    2020     * @var      string    VERSION    The current version of the plugin.
    2121     */
    22     const VERSION = '2.2.8';
     22    const VERSION = '2.2.9';
    2323
    2424    /**
  • iloveimg/tags/2.2.9/composer.json

    r3256112 r3257296  
    1212    ],
    1313    "require": {
     14        "php": ">=7.4",
    1415        "ilovepdf/iloveimg-php": "dev-master"
    1516    },
     
    2122    },
    2223    "config": {
     24        "platform": {
     25            "php": "7.4"
     26        },
    2327        "allow-plugins": {
    2428            "phpstan/extension-installer": true,
  • iloveimg/tags/2.2.9/ilove-img-compress.php

    r3256112 r3257296  
    1111 * Plugin URI:        https://iloveapi.com/
    1212 * Description:       Get your images delivered quickly. Now you can get a powerful, easy to use, and reliable image compression plugin for your image optimization needs. With full automation and powerful features, iLoveIMG makes it easy to speed up your website by lightening past and new images with just a click. Compress JPG, PNG and GIF images in your WordPress to improve the positioning of your site, boost visitor’s engagement and ultimately increase sales.
    13  * Version:           2.2.8
     13 * Version:           2.2.9
    1414 * Requires at least: 5.3
    1515 * Requires PHP:      7.4
  • iloveimg/tags/2.2.9/readme.txt

    r3256112 r3257296  
    11=== Image Compressor & Optimizer - iLoveIMG ===
    22Plugin Name: Image Compressor & Optimizer - iLoveIMG
    3 Version: 2.2.8
     3Version: 2.2.9
    44Author: iLovePDF
    55Author URI: https://www.iloveimg.com/
     
    88Requires at least: 5.3
    99Tested up to: 6.7
    10 Stable tag: 2.2.8
     10Stable tag: 2.2.9
    1111Requires PHP: 7.4
    1212License: GPLv2 or later
     
    9494
    9595== Changelog ==
     96
     97= 2.2.9 =
     98Improved
     99* library compatibility with PHP 7.4
    96100
    97101= 2.2.8 =
  • iloveimg/tags/2.2.9/vendor/autoload.php

    r3224285 r3257296  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInitca264d8dde67813376c567ae25ecc7cd::getLoader();
     25return ComposerAutoloaderInitc53b9aaaed807b4d7afb2663fe31177c::getLoader();
  • iloveimg/tags/2.2.9/vendor/composer/autoload_real.php

    r3224285 r3257296  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitca264d8dde67813376c567ae25ecc7cd
     5class ComposerAutoloaderInitc53b9aaaed807b4d7afb2663fe31177c
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInitca264d8dde67813376c567ae25ecc7cd', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInitc53b9aaaed807b4d7afb2663fe31177c', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInitca264d8dde67813376c567ae25ecc7cd', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInitc53b9aaaed807b4d7afb2663fe31177c', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInitca264d8dde67813376c567ae25ecc7cd::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInitc53b9aaaed807b4d7afb2663fe31177c::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $filesToLoad = \Composer\Autoload\ComposerStaticInitca264d8dde67813376c567ae25ecc7cd::$files;
     36        $filesToLoad = \Composer\Autoload\ComposerStaticInitc53b9aaaed807b4d7afb2663fe31177c::$files;
    3737        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3838            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • iloveimg/tags/2.2.9/vendor/composer/autoload_static.php

    r3224285 r3257296  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitca264d8dde67813376c567ae25ecc7cd
     7class ComposerStaticInitc53b9aaaed807b4d7afb2663fe31177c
    88{
    99    public static $files = array (
     
    7979    {
    8080        return \Closure::bind(function () use ($loader) {
    81             $loader->prefixLengthsPsr4 = ComposerStaticInitca264d8dde67813376c567ae25ecc7cd::$prefixLengthsPsr4;
    82             $loader->prefixDirsPsr4 = ComposerStaticInitca264d8dde67813376c567ae25ecc7cd::$prefixDirsPsr4;
    83             $loader->classMap = ComposerStaticInitca264d8dde67813376c567ae25ecc7cd::$classMap;
     81            $loader->prefixLengthsPsr4 = ComposerStaticInitc53b9aaaed807b4d7afb2663fe31177c::$prefixLengthsPsr4;
     82            $loader->prefixDirsPsr4 = ComposerStaticInitc53b9aaaed807b4d7afb2663fe31177c::$prefixDirsPsr4;
     83            $loader->classMap = ComposerStaticInitc53b9aaaed807b4d7afb2663fe31177c::$classMap;
    8484
    8585        }, null, ClassLoader::class);
  • iloveimg/tags/2.2.9/vendor/composer/installed.json

    r3256112 r3257296  
    8484        {
    8585            "name": "firebase/php-jwt",
    86             "version": "v6.11.0",
    87             "version_normalized": "6.11.0.0",
     86            "version": "v6.10.0",
     87            "version_normalized": "6.10.0.0",
    8888            "source": {
    8989                "type": "git",
    9090                "url": "https://github.com/firebase/php-jwt.git",
    91                 "reference": "8f718f4dfc9c5d5f0c994cdfd103921b43592712"
    92             },
    93             "dist": {
    94                 "type": "zip",
    95                 "url": "https://api.github.com/repos/firebase/php-jwt/zipball/8f718f4dfc9c5d5f0c994cdfd103921b43592712",
    96                 "reference": "8f718f4dfc9c5d5f0c994cdfd103921b43592712",
    97                 "shasum": ""
    98             },
    99             "require": {
    100                 "php": "^8.0"
     91                "reference": "a49db6f0a5033aef5143295342f1c95521b075ff"
     92            },
     93            "dist": {
     94                "type": "zip",
     95                "url": "https://api.github.com/repos/firebase/php-jwt/zipball/a49db6f0a5033aef5143295342f1c95521b075ff",
     96                "reference": "a49db6f0a5033aef5143295342f1c95521b075ff",
     97                "shasum": ""
     98            },
     99            "require": {
     100                "php": "^7.4||^8.0"
    101101            },
    102102            "require-dev": {
    103                 "guzzlehttp/guzzle": "^7.4",
     103                "guzzlehttp/guzzle": "^6.5||^7.4",
    104104                "phpspec/prophecy-phpunit": "^2.0",
    105105                "phpunit/phpunit": "^9.5",
    106                 "psr/cache": "^2.0||^3.0",
     106                "psr/cache": "^1.0||^2.0",
    107107                "psr/http-client": "^1.0",
    108108                "psr/http-factory": "^1.0"
     
    112112                "paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present"
    113113            },
    114             "time": "2025-01-23T05:11:06+00:00",
     114            "time": "2023-12-01T16:26:39+00:00",
    115115            "type": "library",
    116116            "installation-source": "dist",
     
    144144            "support": {
    145145                "issues": "https://github.com/firebase/php-jwt/issues",
    146                 "source": "https://github.com/firebase/php-jwt/tree/v6.11.0"
     146                "source": "https://github.com/firebase/php-jwt/tree/v6.10.0"
    147147            },
    148148            "install-path": "../firebase/php-jwt"
     
    11741174        {
    11751175            "name": "symfony/deprecation-contracts",
    1176             "version": "v3.5.1",
    1177             "version_normalized": "3.5.1.0",
     1176            "version": "v2.5.4",
     1177            "version_normalized": "2.5.4.0",
    11781178            "source": {
    11791179                "type": "git",
    11801180                "url": "https://github.com/symfony/deprecation-contracts.git",
    1181                 "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6"
    1182             },
    1183             "dist": {
    1184                 "type": "zip",
    1185                 "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6",
    1186                 "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6",
    1187                 "shasum": ""
    1188             },
    1189             "require": {
    1190                 "php": ">=8.1"
    1191             },
    1192             "time": "2024-09-25T14:20:29+00:00",
     1181                "reference": "605389f2a7e5625f273b53960dc46aeaf9c62918"
     1182            },
     1183            "dist": {
     1184                "type": "zip",
     1185                "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/605389f2a7e5625f273b53960dc46aeaf9c62918",
     1186                "reference": "605389f2a7e5625f273b53960dc46aeaf9c62918",
     1187                "shasum": ""
     1188            },
     1189            "require": {
     1190                "php": ">=7.1"
     1191            },
     1192            "time": "2024-09-25T14:11:13+00:00",
    11931193            "type": "library",
    11941194            "extra": {
     
    11981198                },
    11991199                "branch-alias": {
    1200                     "dev-main": "3.5-dev"
     1200                    "dev-main": "2.5-dev"
    12011201                }
    12021202            },
     
    12241224            "homepage": "https://symfony.com",
    12251225            "support": {
    1226                 "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.1"
     1226                "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.4"
    12271227            },
    12281228            "funding": [
  • iloveimg/tags/2.2.9/vendor/composer/installed.php

    r3256112 r3257296  
    44        'pretty_version' => 'dev-develop',
    55        'version' => 'dev-develop',
    6         'reference' => '4e76b741e45e308cc3af16f453385e11de725135',
     6        'reference' => '8ff778154da1f0cc5b9b5d75c2638b18c0d37ec5',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        'firebase/php-jwt' => array(
    23             'pretty_version' => 'v6.11.0',
    24             'version' => '6.11.0.0',
    25             'reference' => '8f718f4dfc9c5d5f0c994cdfd103921b43592712',
     23            'pretty_version' => 'v6.10.0',
     24            'version' => '6.10.0.0',
     25            'reference' => 'a49db6f0a5033aef5143295342f1c95521b075ff',
    2626            'type' => 'library',
    2727            'install_path' => __DIR__ . '/../firebase/php-jwt',
     
    7070            'pretty_version' => 'dev-develop',
    7171            'version' => 'dev-develop',
    72             'reference' => '4e76b741e45e308cc3af16f453385e11de725135',
     72            'reference' => '8ff778154da1f0cc5b9b5d75c2638b18c0d37ec5',
    7373            'type' => 'wordpress-plugin',
    7474            'install_path' => __DIR__ . '/../../',
     
    185185        ),
    186186        'symfony/deprecation-contracts' => array(
    187             'pretty_version' => 'v3.5.1',
    188             'version' => '3.5.1.0',
    189             'reference' => '74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6',
     187            'pretty_version' => 'v2.5.4',
     188            'version' => '2.5.4.0',
     189            'reference' => '605389f2a7e5625f273b53960dc46aeaf9c62918',
    190190            'type' => 'library',
    191191            'install_path' => __DIR__ . '/../symfony/deprecation-contracts',
  • iloveimg/tags/2.2.9/vendor/composer/platform_check.php

    r3119476 r3257296  
    55$issues = array();
    66
    7 if (!(PHP_VERSION_ID >= 80100)) {
    8     $issues[] = 'Your Composer dependencies require a PHP version ">= 8.1.0". You are running ' . PHP_VERSION . '.';
     7if (!(PHP_VERSION_ID >= 70400)) {
     8    $issues[] = 'Your Composer dependencies require a PHP version ">= 7.4.0". You are running ' . PHP_VERSION . '.';
    99}
    1010
  • iloveimg/tags/2.2.9/vendor/firebase/php-jwt/CHANGELOG.md

    r3239545 r3257296  
    11# Changelog
    2 
    3 ## [6.11.0](https://github.com/firebase/php-jwt/compare/v6.10.2...v6.11.0) (2025-01-23)
    4 
    5 
    6 ### Features
    7 
    8 * support octet typed JWK ([#587](https://github.com/firebase/php-jwt/issues/587)) ([7cb8a26](https://github.com/firebase/php-jwt/commit/7cb8a265fa81edf2fa6ef8098f5bc5ae573c33ad))
    9 
    10 
    11 ### Bug Fixes
    12 
    13 * refactor constructor Key to use PHP 8.0 syntax ([#577](https://github.com/firebase/php-jwt/issues/577)) ([29fa2ce](https://github.com/firebase/php-jwt/commit/29fa2ce9e0582cd397711eec1e80c05ce20fabca))
    14 
    15 ## [6.10.2](https://github.com/firebase/php-jwt/compare/v6.10.1...v6.10.2) (2024-11-24)
    16 
    17 
    18 ### Bug Fixes
    19 
    20 * Mitigate PHP8.4 deprecation warnings ([#570](https://github.com/firebase/php-jwt/issues/570)) ([76808fa](https://github.com/firebase/php-jwt/commit/76808fa227f3811aa5cdb3bf81233714b799a5b5))
    21 * support php 8.4 ([#583](https://github.com/firebase/php-jwt/issues/583)) ([e3d68b0](https://github.com/firebase/php-jwt/commit/e3d68b044421339443c74199edd020e03fb1887e))
    22 
    23 ## [6.10.1](https://github.com/firebase/php-jwt/compare/v6.10.0...v6.10.1) (2024-05-18)
    24 
    25 
    26 ### Bug Fixes
    27 
    28 * ensure ratelimit expiry is set every time ([#556](https://github.com/firebase/php-jwt/issues/556)) ([09cb208](https://github.com/firebase/php-jwt/commit/09cb2081c2c3bc0f61e2f2a5fbea5741f7498648))
    29 * ratelimit cache expiration ([#550](https://github.com/firebase/php-jwt/issues/550)) ([dda7250](https://github.com/firebase/php-jwt/commit/dda725033585ece30ff8cae8937320d7e9f18bae))
    302
    313## [6.10.0](https://github.com/firebase/php-jwt/compare/v6.9.0...v6.10.0) (2023-11-28)
  • iloveimg/tags/2.2.9/vendor/firebase/php-jwt/README.md

    r3239545 r3257296  
    1818
    1919Optionally, install the `paragonie/sodium_compat` package from composer if your
    20 php env does not have libsodium installed:
     20php is < 7.2 or does not have libsodium installed:
    2121
    2222```bash
     
    4949
    5050// Pass a stdClass in as the third parameter to get the decoded header values
    51 $headers = new stdClass();
    52 $decoded = JWT::decode($jwt, new Key($key, 'HS256'), $headers);
     51$decoded = JWT::decode($jwt, new Key($key, 'HS256'), $headers = new stdClass());
    5352print_r($headers);
    5453
  • iloveimg/tags/2.2.9/vendor/firebase/php-jwt/composer.json

    r3165770 r3257296  
    2121    "license": "BSD-3-Clause",
    2222    "require": {
    23         "php": "^8.0"
     23        "php": "^7.4||^8.0"
    2424    },
    2525    "suggest": {
     
    3333    },
    3434    "require-dev": {
    35         "guzzlehttp/guzzle": "^7.4",
     35        "guzzlehttp/guzzle": "^6.5||^7.4",
    3636        "phpspec/prophecy-phpunit": "^2.0",
    3737        "phpunit/phpunit": "^9.5",
    38         "psr/cache": "^2.0||^3.0",
     38        "psr/cache": "^1.0||^2.0",
    3939        "psr/http-client": "^1.0",
    4040        "psr/http-factory": "^1.0"
  • iloveimg/tags/2.2.9/vendor/firebase/php-jwt/src/CachedKeySet.php

    r3224285 r3257296  
    8181        RequestFactoryInterface $httpFactory,
    8282        CacheItemPoolInterface $cache,
    83         ?int $expiresAfter = null,
     83        int $expiresAfter = null,
    8484        bool $rateLimit = false,
    85         ?string $defaultAlg = null
     85        string $defaultAlg = null
    8686    ) {
    8787        $this->jwksUri = $jwksUri;
     
    181181            if ($jwksResponse->getStatusCode() !== 200) {
    182182                throw new UnexpectedValueException(
    183                     \sprintf('HTTP Error: %d %s for URI "%s"',
     183                    sprintf('HTTP Error: %d %s for URI "%s"',
    184184                        $jwksResponse->getStatusCode(),
    185185                        $jwksResponse->getReasonPhrase(),
     
    213213
    214214        $cacheItem = $this->cache->getItem($this->rateLimitCacheKey);
    215 
    216         $cacheItemData = [];
    217         if ($cacheItem->isHit() && \is_array($data = $cacheItem->get())) {
    218             $cacheItemData = $data;
    219         }
    220 
    221         $callsPerMinute = $cacheItemData['callsPerMinute'] ?? 0;
    222         $expiry = $cacheItemData['expiry'] ?? new \DateTime('+60 seconds', new \DateTimeZone('UTC'));
    223 
     215        if (!$cacheItem->isHit()) {
     216            $cacheItem->expiresAfter(1); // # of calls are cached each minute
     217        }
     218
     219        $callsPerMinute = (int) $cacheItem->get();
    224220        if (++$callsPerMinute > $this->maxCallsPerMinute) {
    225221            return true;
    226222        }
    227 
    228         $cacheItem->set(['expiry' => $expiry, 'callsPerMinute' => $callsPerMinute]);
    229         $cacheItem->expiresAt($expiry);
     223        $cacheItem->set($callsPerMinute);
    230224        $this->cache->save($cacheItem);
    231225        return false;
  • iloveimg/tags/2.2.9/vendor/firebase/php-jwt/src/JWK.php

    r3239545 r3257296  
    5353     * @uses parseKey
    5454     */
    55     public static function parseKeySet(array $jwks, ?string $defaultAlg = null): array
     55    public static function parseKeySet(array $jwks, string $defaultAlg = null): array
    5656    {
    5757        $keys = [];
     
    9494     * @uses createPemFromModulusAndExponent
    9595     */
    96     public static function parseKey(array $jwk, ?string $defaultAlg = null): ?Key
     96    public static function parseKey(array $jwk, string $defaultAlg = null): ?Key
    9797    {
    9898        if (empty($jwk)) {
     
    173173                $publicKey = JWT::convertBase64urlToBase64($jwk['x']);
    174174                return new Key($publicKey, $jwk['alg']);
    175             case 'oct':
    176                 if (!isset($jwk['k'])) {
    177                     throw new UnexpectedValueException('k not set');
    178                 }
    179 
    180                 return new Key(JWT::urlsafeB64Decode($jwk['k']), $jwk['alg']);
    181175            default:
    182176                break;
     
    219213            );
    220214
    221         return \sprintf(
     215        return sprintf(
    222216            "-----BEGIN PUBLIC KEY-----\n%s\n-----END PUBLIC KEY-----\n",
    223217            wordwrap(base64_encode($pem), 64, "\n", true)
  • iloveimg/tags/2.2.9/vendor/firebase/php-jwt/src/JWT.php

    r3224285 r3257296  
    9797        string $jwt,
    9898        $keyOrKeyArray,
    99         ?stdClass &$headers = null
     99        stdClass &$headers = null
    100100    ): stdClass {
    101101        // Validate JWT
     
    201201        $key,
    202202        string $alg,
    203         ?string $keyId = null,
    204         ?array $head = null
     203        string $keyId = null,
     204        array $head = null
    205205    ): string {
    206206        $header = ['typ' => 'JWT'];
    207         if (isset($head)) {
     207        if (isset($head) && \is_array($head)) {
    208208            $header = \array_merge($header, $head);
    209209        }
     
    252252            case 'openssl':
    253253                $signature = '';
    254                 if (!\is_resource($key) && !openssl_pkey_get_private($key)) {
    255                     throw new DomainException('OpenSSL unable to validate key');
    256                 }
    257254                $success = \openssl_sign($msg, $signature, $key, $algorithm); // @phpstan-ignore-line
    258255                if (!$success) {
     
    388385    public static function jsonEncode(array $input): string
    389386    {
    390         $json = \json_encode($input, \JSON_UNESCAPED_SLASHES);
     387        if (PHP_VERSION_ID >= 50400) {
     388            $json = \json_encode($input, \JSON_UNESCAPED_SLASHES);
     389        } else {
     390            // PHP 5.3 only
     391            $json = \json_encode($input);
     392        }
    391393        if ($errno = \json_last_error()) {
    392394            self::handleJsonError($errno);
  • iloveimg/tags/2.2.9/vendor/firebase/php-jwt/src/Key.php

    r3239545 r3257296  
    1010class Key
    1111{
     12    /** @var string|resource|OpenSSLAsymmetricKey|OpenSSLCertificate */
     13    private $keyMaterial;
     14    /** @var string */
     15    private $algorithm;
     16
    1217    /**
    1318     * @param string|resource|OpenSSLAsymmetricKey|OpenSSLCertificate $keyMaterial
     
    1520     */
    1621    public function __construct(
    17         private $keyMaterial,
    18         private string $algorithm
     22        $keyMaterial,
     23        string $algorithm
    1924    ) {
    2025        if (
     
    3439            throw new InvalidArgumentException('Algorithm must not be empty');
    3540        }
     41
     42        // TODO: Remove in PHP 8.0 in favor of class constructor property promotion
     43        $this->keyMaterial = $keyMaterial;
     44        $this->algorithm = $algorithm;
    3645    }
    3746
  • iloveimg/tags/2.2.9/vendor/symfony/deprecation-contracts/README.md

    r3164517 r3257296  
    2323`Since symfony/blockchain 8.9: Using "bitcoin" is deprecated, use "fabcoin" instead.`
    2424
    25 While not recommended, the deprecation notices can be completely ignored by declaring an empty
     25While not necessarily recommended, the deprecation notices can be completely ignored by declaring an empty
    2626`function trigger_deprecation() {}` in your application.
  • iloveimg/tags/2.2.9/vendor/symfony/deprecation-contracts/composer.json

    r3164517 r3257296  
    1616    ],
    1717    "require": {
    18         "php": ">=8.1"
     18        "php": ">=7.1"
    1919    },
    2020    "autoload": {
     
    2626    "extra": {
    2727        "branch-alias": {
    28             "dev-main": "3.5-dev"
     28            "dev-main": "2.5-dev"
    2929        },
    3030        "thanks": {
  • iloveimg/tags/2.2.9/vendor/symfony/deprecation-contracts/function.php

    r3164517 r3257296  
    2121     * @author Nicolas Grekas <p@tchwork.com>
    2222     */
    23     function trigger_deprecation(string $package, string $version, string $message, mixed ...$args): void
     23    function trigger_deprecation(string $package, string $version, string $message, ...$args): void
    2424    {
    2525        @trigger_error(($package || $version ? "Since $package $version: " : '').($args ? vsprintf($message, $args) : $message), \E_USER_DEPRECATED);
  • iloveimg/trunk/.gitignore

    r3165770 r3257296  
    1212composer.lock
    1313package-lock.json
    14 dev/package-lock.json
    1514
    1615# Compiled Java class files
     
    4241*.exe
    4342*.war
     43*.zip
    4444
    4545# Large media files
  • iloveimg/trunk/admin/Ilove_Img_Compress_Plugin.php

    r3256112 r3257296  
    2020     * @var      string    VERSION    The current version of the plugin.
    2121     */
    22     const VERSION = '2.2.8';
     22    const VERSION = '2.2.9';
    2323
    2424    /**
  • iloveimg/trunk/composer.json

    r3256112 r3257296  
    1212    ],
    1313    "require": {
     14        "php": ">=7.4",
    1415        "ilovepdf/iloveimg-php": "dev-master"
    1516    },
     
    2122    },
    2223    "config": {
     24        "platform": {
     25            "php": "7.4"
     26        },
    2327        "allow-plugins": {
    2428            "phpstan/extension-installer": true,
  • iloveimg/trunk/ilove-img-compress.php

    r3256112 r3257296  
    1111 * Plugin URI:        https://iloveapi.com/
    1212 * Description:       Get your images delivered quickly. Now you can get a powerful, easy to use, and reliable image compression plugin for your image optimization needs. With full automation and powerful features, iLoveIMG makes it easy to speed up your website by lightening past and new images with just a click. Compress JPG, PNG and GIF images in your WordPress to improve the positioning of your site, boost visitor’s engagement and ultimately increase sales.
    13  * Version:           2.2.8
     13 * Version:           2.2.9
    1414 * Requires at least: 5.3
    1515 * Requires PHP:      7.4
  • iloveimg/trunk/readme.txt

    r3256112 r3257296  
    11=== Image Compressor & Optimizer - iLoveIMG ===
    22Plugin Name: Image Compressor & Optimizer - iLoveIMG
    3 Version: 2.2.8
     3Version: 2.2.9
    44Author: iLovePDF
    55Author URI: https://www.iloveimg.com/
     
    88Requires at least: 5.3
    99Tested up to: 6.7
    10 Stable tag: 2.2.8
     10Stable tag: 2.2.9
    1111Requires PHP: 7.4
    1212License: GPLv2 or later
     
    9494
    9595== Changelog ==
     96
     97= 2.2.9 =
     98Improved
     99* library compatibility with PHP 7.4
    96100
    97101= 2.2.8 =
  • iloveimg/trunk/vendor/autoload.php

    r3224285 r3257296  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInitca264d8dde67813376c567ae25ecc7cd::getLoader();
     25return ComposerAutoloaderInitc53b9aaaed807b4d7afb2663fe31177c::getLoader();
  • iloveimg/trunk/vendor/composer/autoload_real.php

    r3224285 r3257296  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitca264d8dde67813376c567ae25ecc7cd
     5class ComposerAutoloaderInitc53b9aaaed807b4d7afb2663fe31177c
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInitca264d8dde67813376c567ae25ecc7cd', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInitc53b9aaaed807b4d7afb2663fe31177c', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInitca264d8dde67813376c567ae25ecc7cd', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInitc53b9aaaed807b4d7afb2663fe31177c', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInitca264d8dde67813376c567ae25ecc7cd::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInitc53b9aaaed807b4d7afb2663fe31177c::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $filesToLoad = \Composer\Autoload\ComposerStaticInitca264d8dde67813376c567ae25ecc7cd::$files;
     36        $filesToLoad = \Composer\Autoload\ComposerStaticInitc53b9aaaed807b4d7afb2663fe31177c::$files;
    3737        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3838            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • iloveimg/trunk/vendor/composer/autoload_static.php

    r3224285 r3257296  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitca264d8dde67813376c567ae25ecc7cd
     7class ComposerStaticInitc53b9aaaed807b4d7afb2663fe31177c
    88{
    99    public static $files = array (
     
    7979    {
    8080        return \Closure::bind(function () use ($loader) {
    81             $loader->prefixLengthsPsr4 = ComposerStaticInitca264d8dde67813376c567ae25ecc7cd::$prefixLengthsPsr4;
    82             $loader->prefixDirsPsr4 = ComposerStaticInitca264d8dde67813376c567ae25ecc7cd::$prefixDirsPsr4;
    83             $loader->classMap = ComposerStaticInitca264d8dde67813376c567ae25ecc7cd::$classMap;
     81            $loader->prefixLengthsPsr4 = ComposerStaticInitc53b9aaaed807b4d7afb2663fe31177c::$prefixLengthsPsr4;
     82            $loader->prefixDirsPsr4 = ComposerStaticInitc53b9aaaed807b4d7afb2663fe31177c::$prefixDirsPsr4;
     83            $loader->classMap = ComposerStaticInitc53b9aaaed807b4d7afb2663fe31177c::$classMap;
    8484
    8585        }, null, ClassLoader::class);
  • iloveimg/trunk/vendor/composer/installed.json

    r3256112 r3257296  
    8484        {
    8585            "name": "firebase/php-jwt",
    86             "version": "v6.11.0",
    87             "version_normalized": "6.11.0.0",
     86            "version": "v6.10.0",
     87            "version_normalized": "6.10.0.0",
    8888            "source": {
    8989                "type": "git",
    9090                "url": "https://github.com/firebase/php-jwt.git",
    91                 "reference": "8f718f4dfc9c5d5f0c994cdfd103921b43592712"
    92             },
    93             "dist": {
    94                 "type": "zip",
    95                 "url": "https://api.github.com/repos/firebase/php-jwt/zipball/8f718f4dfc9c5d5f0c994cdfd103921b43592712",
    96                 "reference": "8f718f4dfc9c5d5f0c994cdfd103921b43592712",
    97                 "shasum": ""
    98             },
    99             "require": {
    100                 "php": "^8.0"
     91                "reference": "a49db6f0a5033aef5143295342f1c95521b075ff"
     92            },
     93            "dist": {
     94                "type": "zip",
     95                "url": "https://api.github.com/repos/firebase/php-jwt/zipball/a49db6f0a5033aef5143295342f1c95521b075ff",
     96                "reference": "a49db6f0a5033aef5143295342f1c95521b075ff",
     97                "shasum": ""
     98            },
     99            "require": {
     100                "php": "^7.4||^8.0"
    101101            },
    102102            "require-dev": {
    103                 "guzzlehttp/guzzle": "^7.4",
     103                "guzzlehttp/guzzle": "^6.5||^7.4",
    104104                "phpspec/prophecy-phpunit": "^2.0",
    105105                "phpunit/phpunit": "^9.5",
    106                 "psr/cache": "^2.0||^3.0",
     106                "psr/cache": "^1.0||^2.0",
    107107                "psr/http-client": "^1.0",
    108108                "psr/http-factory": "^1.0"
     
    112112                "paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present"
    113113            },
    114             "time": "2025-01-23T05:11:06+00:00",
     114            "time": "2023-12-01T16:26:39+00:00",
    115115            "type": "library",
    116116            "installation-source": "dist",
     
    144144            "support": {
    145145                "issues": "https://github.com/firebase/php-jwt/issues",
    146                 "source": "https://github.com/firebase/php-jwt/tree/v6.11.0"
     146                "source": "https://github.com/firebase/php-jwt/tree/v6.10.0"
    147147            },
    148148            "install-path": "../firebase/php-jwt"
     
    11741174        {
    11751175            "name": "symfony/deprecation-contracts",
    1176             "version": "v3.5.1",
    1177             "version_normalized": "3.5.1.0",
     1176            "version": "v2.5.4",
     1177            "version_normalized": "2.5.4.0",
    11781178            "source": {
    11791179                "type": "git",
    11801180                "url": "https://github.com/symfony/deprecation-contracts.git",
    1181                 "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6"
    1182             },
    1183             "dist": {
    1184                 "type": "zip",
    1185                 "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6",
    1186                 "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6",
    1187                 "shasum": ""
    1188             },
    1189             "require": {
    1190                 "php": ">=8.1"
    1191             },
    1192             "time": "2024-09-25T14:20:29+00:00",
     1181                "reference": "605389f2a7e5625f273b53960dc46aeaf9c62918"
     1182            },
     1183            "dist": {
     1184                "type": "zip",
     1185                "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/605389f2a7e5625f273b53960dc46aeaf9c62918",
     1186                "reference": "605389f2a7e5625f273b53960dc46aeaf9c62918",
     1187                "shasum": ""
     1188            },
     1189            "require": {
     1190                "php": ">=7.1"
     1191            },
     1192            "time": "2024-09-25T14:11:13+00:00",
    11931193            "type": "library",
    11941194            "extra": {
     
    11981198                },
    11991199                "branch-alias": {
    1200                     "dev-main": "3.5-dev"
     1200                    "dev-main": "2.5-dev"
    12011201                }
    12021202            },
     
    12241224            "homepage": "https://symfony.com",
    12251225            "support": {
    1226                 "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.1"
     1226                "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.4"
    12271227            },
    12281228            "funding": [
  • iloveimg/trunk/vendor/composer/installed.php

    r3256112 r3257296  
    44        'pretty_version' => 'dev-develop',
    55        'version' => 'dev-develop',
    6         'reference' => '4e76b741e45e308cc3af16f453385e11de725135',
     6        'reference' => '8ff778154da1f0cc5b9b5d75c2638b18c0d37ec5',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        'firebase/php-jwt' => array(
    23             'pretty_version' => 'v6.11.0',
    24             'version' => '6.11.0.0',
    25             'reference' => '8f718f4dfc9c5d5f0c994cdfd103921b43592712',
     23            'pretty_version' => 'v6.10.0',
     24            'version' => '6.10.0.0',
     25            'reference' => 'a49db6f0a5033aef5143295342f1c95521b075ff',
    2626            'type' => 'library',
    2727            'install_path' => __DIR__ . '/../firebase/php-jwt',
     
    7070            'pretty_version' => 'dev-develop',
    7171            'version' => 'dev-develop',
    72             'reference' => '4e76b741e45e308cc3af16f453385e11de725135',
     72            'reference' => '8ff778154da1f0cc5b9b5d75c2638b18c0d37ec5',
    7373            'type' => 'wordpress-plugin',
    7474            'install_path' => __DIR__ . '/../../',
     
    185185        ),
    186186        'symfony/deprecation-contracts' => array(
    187             'pretty_version' => 'v3.5.1',
    188             'version' => '3.5.1.0',
    189             'reference' => '74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6',
     187            'pretty_version' => 'v2.5.4',
     188            'version' => '2.5.4.0',
     189            'reference' => '605389f2a7e5625f273b53960dc46aeaf9c62918',
    190190            'type' => 'library',
    191191            'install_path' => __DIR__ . '/../symfony/deprecation-contracts',
  • iloveimg/trunk/vendor/composer/platform_check.php

    r3119476 r3257296  
    55$issues = array();
    66
    7 if (!(PHP_VERSION_ID >= 80100)) {
    8     $issues[] = 'Your Composer dependencies require a PHP version ">= 8.1.0". You are running ' . PHP_VERSION . '.';
     7if (!(PHP_VERSION_ID >= 70400)) {
     8    $issues[] = 'Your Composer dependencies require a PHP version ">= 7.4.0". You are running ' . PHP_VERSION . '.';
    99}
    1010
  • iloveimg/trunk/vendor/firebase/php-jwt/CHANGELOG.md

    r3239545 r3257296  
    11# Changelog
    2 
    3 ## [6.11.0](https://github.com/firebase/php-jwt/compare/v6.10.2...v6.11.0) (2025-01-23)
    4 
    5 
    6 ### Features
    7 
    8 * support octet typed JWK ([#587](https://github.com/firebase/php-jwt/issues/587)) ([7cb8a26](https://github.com/firebase/php-jwt/commit/7cb8a265fa81edf2fa6ef8098f5bc5ae573c33ad))
    9 
    10 
    11 ### Bug Fixes
    12 
    13 * refactor constructor Key to use PHP 8.0 syntax ([#577](https://github.com/firebase/php-jwt/issues/577)) ([29fa2ce](https://github.com/firebase/php-jwt/commit/29fa2ce9e0582cd397711eec1e80c05ce20fabca))
    14 
    15 ## [6.10.2](https://github.com/firebase/php-jwt/compare/v6.10.1...v6.10.2) (2024-11-24)
    16 
    17 
    18 ### Bug Fixes
    19 
    20 * Mitigate PHP8.4 deprecation warnings ([#570](https://github.com/firebase/php-jwt/issues/570)) ([76808fa](https://github.com/firebase/php-jwt/commit/76808fa227f3811aa5cdb3bf81233714b799a5b5))
    21 * support php 8.4 ([#583](https://github.com/firebase/php-jwt/issues/583)) ([e3d68b0](https://github.com/firebase/php-jwt/commit/e3d68b044421339443c74199edd020e03fb1887e))
    22 
    23 ## [6.10.1](https://github.com/firebase/php-jwt/compare/v6.10.0...v6.10.1) (2024-05-18)
    24 
    25 
    26 ### Bug Fixes
    27 
    28 * ensure ratelimit expiry is set every time ([#556](https://github.com/firebase/php-jwt/issues/556)) ([09cb208](https://github.com/firebase/php-jwt/commit/09cb2081c2c3bc0f61e2f2a5fbea5741f7498648))
    29 * ratelimit cache expiration ([#550](https://github.com/firebase/php-jwt/issues/550)) ([dda7250](https://github.com/firebase/php-jwt/commit/dda725033585ece30ff8cae8937320d7e9f18bae))
    302
    313## [6.10.0](https://github.com/firebase/php-jwt/compare/v6.9.0...v6.10.0) (2023-11-28)
  • iloveimg/trunk/vendor/firebase/php-jwt/README.md

    r3239545 r3257296  
    1818
    1919Optionally, install the `paragonie/sodium_compat` package from composer if your
    20 php env does not have libsodium installed:
     20php is < 7.2 or does not have libsodium installed:
    2121
    2222```bash
     
    4949
    5050// Pass a stdClass in as the third parameter to get the decoded header values
    51 $headers = new stdClass();
    52 $decoded = JWT::decode($jwt, new Key($key, 'HS256'), $headers);
     51$decoded = JWT::decode($jwt, new Key($key, 'HS256'), $headers = new stdClass());
    5352print_r($headers);
    5453
  • iloveimg/trunk/vendor/firebase/php-jwt/composer.json

    r3165770 r3257296  
    2121    "license": "BSD-3-Clause",
    2222    "require": {
    23         "php": "^8.0"
     23        "php": "^7.4||^8.0"
    2424    },
    2525    "suggest": {
     
    3333    },
    3434    "require-dev": {
    35         "guzzlehttp/guzzle": "^7.4",
     35        "guzzlehttp/guzzle": "^6.5||^7.4",
    3636        "phpspec/prophecy-phpunit": "^2.0",
    3737        "phpunit/phpunit": "^9.5",
    38         "psr/cache": "^2.0||^3.0",
     38        "psr/cache": "^1.0||^2.0",
    3939        "psr/http-client": "^1.0",
    4040        "psr/http-factory": "^1.0"
  • iloveimg/trunk/vendor/firebase/php-jwt/src/CachedKeySet.php

    r3224285 r3257296  
    8181        RequestFactoryInterface $httpFactory,
    8282        CacheItemPoolInterface $cache,
    83         ?int $expiresAfter = null,
     83        int $expiresAfter = null,
    8484        bool $rateLimit = false,
    85         ?string $defaultAlg = null
     85        string $defaultAlg = null
    8686    ) {
    8787        $this->jwksUri = $jwksUri;
     
    181181            if ($jwksResponse->getStatusCode() !== 200) {
    182182                throw new UnexpectedValueException(
    183                     \sprintf('HTTP Error: %d %s for URI "%s"',
     183                    sprintf('HTTP Error: %d %s for URI "%s"',
    184184                        $jwksResponse->getStatusCode(),
    185185                        $jwksResponse->getReasonPhrase(),
     
    213213
    214214        $cacheItem = $this->cache->getItem($this->rateLimitCacheKey);
    215 
    216         $cacheItemData = [];
    217         if ($cacheItem->isHit() && \is_array($data = $cacheItem->get())) {
    218             $cacheItemData = $data;
    219         }
    220 
    221         $callsPerMinute = $cacheItemData['callsPerMinute'] ?? 0;
    222         $expiry = $cacheItemData['expiry'] ?? new \DateTime('+60 seconds', new \DateTimeZone('UTC'));
    223 
     215        if (!$cacheItem->isHit()) {
     216            $cacheItem->expiresAfter(1); // # of calls are cached each minute
     217        }
     218
     219        $callsPerMinute = (int) $cacheItem->get();
    224220        if (++$callsPerMinute > $this->maxCallsPerMinute) {
    225221            return true;
    226222        }
    227 
    228         $cacheItem->set(['expiry' => $expiry, 'callsPerMinute' => $callsPerMinute]);
    229         $cacheItem->expiresAt($expiry);
     223        $cacheItem->set($callsPerMinute);
    230224        $this->cache->save($cacheItem);
    231225        return false;
  • iloveimg/trunk/vendor/firebase/php-jwt/src/JWK.php

    r3239545 r3257296  
    5353     * @uses parseKey
    5454     */
    55     public static function parseKeySet(array $jwks, ?string $defaultAlg = null): array
     55    public static function parseKeySet(array $jwks, string $defaultAlg = null): array
    5656    {
    5757        $keys = [];
     
    9494     * @uses createPemFromModulusAndExponent
    9595     */
    96     public static function parseKey(array $jwk, ?string $defaultAlg = null): ?Key
     96    public static function parseKey(array $jwk, string $defaultAlg = null): ?Key
    9797    {
    9898        if (empty($jwk)) {
     
    173173                $publicKey = JWT::convertBase64urlToBase64($jwk['x']);
    174174                return new Key($publicKey, $jwk['alg']);
    175             case 'oct':
    176                 if (!isset($jwk['k'])) {
    177                     throw new UnexpectedValueException('k not set');
    178                 }
    179 
    180                 return new Key(JWT::urlsafeB64Decode($jwk['k']), $jwk['alg']);
    181175            default:
    182176                break;
     
    219213            );
    220214
    221         return \sprintf(
     215        return sprintf(
    222216            "-----BEGIN PUBLIC KEY-----\n%s\n-----END PUBLIC KEY-----\n",
    223217            wordwrap(base64_encode($pem), 64, "\n", true)
  • iloveimg/trunk/vendor/firebase/php-jwt/src/JWT.php

    r3224285 r3257296  
    9797        string $jwt,
    9898        $keyOrKeyArray,
    99         ?stdClass &$headers = null
     99        stdClass &$headers = null
    100100    ): stdClass {
    101101        // Validate JWT
     
    201201        $key,
    202202        string $alg,
    203         ?string $keyId = null,
    204         ?array $head = null
     203        string $keyId = null,
     204        array $head = null
    205205    ): string {
    206206        $header = ['typ' => 'JWT'];
    207         if (isset($head)) {
     207        if (isset($head) && \is_array($head)) {
    208208            $header = \array_merge($header, $head);
    209209        }
     
    252252            case 'openssl':
    253253                $signature = '';
    254                 if (!\is_resource($key) && !openssl_pkey_get_private($key)) {
    255                     throw new DomainException('OpenSSL unable to validate key');
    256                 }
    257254                $success = \openssl_sign($msg, $signature, $key, $algorithm); // @phpstan-ignore-line
    258255                if (!$success) {
     
    388385    public static function jsonEncode(array $input): string
    389386    {
    390         $json = \json_encode($input, \JSON_UNESCAPED_SLASHES);
     387        if (PHP_VERSION_ID >= 50400) {
     388            $json = \json_encode($input, \JSON_UNESCAPED_SLASHES);
     389        } else {
     390            // PHP 5.3 only
     391            $json = \json_encode($input);
     392        }
    391393        if ($errno = \json_last_error()) {
    392394            self::handleJsonError($errno);
  • iloveimg/trunk/vendor/firebase/php-jwt/src/Key.php

    r3239545 r3257296  
    1010class Key
    1111{
     12    /** @var string|resource|OpenSSLAsymmetricKey|OpenSSLCertificate */
     13    private $keyMaterial;
     14    /** @var string */
     15    private $algorithm;
     16
    1217    /**
    1318     * @param string|resource|OpenSSLAsymmetricKey|OpenSSLCertificate $keyMaterial
     
    1520     */
    1621    public function __construct(
    17         private $keyMaterial,
    18         private string $algorithm
     22        $keyMaterial,
     23        string $algorithm
    1924    ) {
    2025        if (
     
    3439            throw new InvalidArgumentException('Algorithm must not be empty');
    3540        }
     41
     42        // TODO: Remove in PHP 8.0 in favor of class constructor property promotion
     43        $this->keyMaterial = $keyMaterial;
     44        $this->algorithm = $algorithm;
    3645    }
    3746
  • iloveimg/trunk/vendor/symfony/deprecation-contracts/README.md

    r3164517 r3257296  
    2323`Since symfony/blockchain 8.9: Using "bitcoin" is deprecated, use "fabcoin" instead.`
    2424
    25 While not recommended, the deprecation notices can be completely ignored by declaring an empty
     25While not necessarily recommended, the deprecation notices can be completely ignored by declaring an empty
    2626`function trigger_deprecation() {}` in your application.
  • iloveimg/trunk/vendor/symfony/deprecation-contracts/composer.json

    r3164517 r3257296  
    1616    ],
    1717    "require": {
    18         "php": ">=8.1"
     18        "php": ">=7.1"
    1919    },
    2020    "autoload": {
     
    2626    "extra": {
    2727        "branch-alias": {
    28             "dev-main": "3.5-dev"
     28            "dev-main": "2.5-dev"
    2929        },
    3030        "thanks": {
  • iloveimg/trunk/vendor/symfony/deprecation-contracts/function.php

    r3164517 r3257296  
    2121     * @author Nicolas Grekas <p@tchwork.com>
    2222     */
    23     function trigger_deprecation(string $package, string $version, string $message, mixed ...$args): void
     23    function trigger_deprecation(string $package, string $version, string $message, ...$args): void
    2424    {
    2525        @trigger_error(($package || $version ? "Since $package $version: " : '').($args ? vsprintf($message, $args) : $message), \E_USER_DEPRECATED);
Note: See TracChangeset for help on using the changeset viewer.