Plugin Directory

Changeset 3224285


Ignore:
Timestamp:
01/17/2025 02:02:45 PM (15 months ago)
Author:
ilovepdf
Message:

Update to version 2.2.6 from GitHub

Location:
iloveimg
Files:
2 deleted
36 edited
1 copied

Legend:

Unmodified
Added
Removed
  • iloveimg/tags/2.2.6/.github/workflows/main.yml

    r2995254 r3224285  
    1111      - name: Checkout code
    1212        uses: actions/checkout@v2
     13      - name: Install SVN
     14        run: sudo apt-get update && sudo apt-get install -y subversion
    1315      - name: WordPress Plugin Deploy
    1416        id: deploy
  • iloveimg/tags/2.2.6/admin/Ilove_Img_Compress_Plugin.php

    r3194405 r3224285  
    2020     * @var      string    VERSION    The current version of the plugin.
    2121     */
    22     const VERSION = '2.2.5';
     22    const VERSION = '2.2.6';
    2323
    2424    /**
     
    3939     */
    4040    protected static $img_nonce;
     41
     42    /**
     43     * File formats.
     44     *
     45     * @since    2.2.6
     46     * @access   public
     47     * @var      array    $accepted_file_format    List of accepted file formats.
     48     */
     49    public static $accepted_file_format = array( 'image/jpeg', 'image/jpg', 'image/png', 'image/gif', 'image/svg+xml' );
    4150
    4251    /**
     
    8190
    8291        // Process attachment metadata.
    83         add_filter( 'wp_generate_attachment_metadata', array( $this, 'process_attachment' ), 10, 2 );
     92        add_filter( 'wp_generate_attachment_metadata', array( $this, 'process_attachment' ), 11, 2 );
     93        add_filter( 'delete_attachment', array( $this, 'before_delete_attachment' ) );
    8494
    8595        // Display media information in the attachment submit box.
     
    249259     */
    250260    public function process_attachment( $metadata, $attachment_id ) {
     261        $file = get_post( $attachment_id );
     262
     263        if ( ! in_array( $file->post_mime_type, self::$accepted_file_format, true ) ) {
     264            return $metadata;
     265        }
     266
    251267        update_post_meta( $attachment_id, 'iloveimg_status_compress', 0 ); // status no compressed
    252268
     
    365381     */
    366382    public function show_media_info( $post ) {
    367         $mime_type_accepted = array( 'image/jpeg', 'image/png', 'image/gif' );
    368 
    369         if ( in_array( $post->post_mime_type, $mime_type_accepted, true ) ) {
     383
     384        if ( in_array( $post->post_mime_type, self::$accepted_file_format, true ) ) {
    370385
    371386            echo '<div class="misc-pub-section iloveimg-compress-images">';
     
    522537        wp_die();
    523538    }
     539
     540    /**
     541     * Delete a file from the backup.
     542     *
     543     * It is activated before deleting an attached file. This allows us to delete the file from the backup.
     544     *
     545     * @since 2.2.6
     546     * @param int $post_id Attachment ID.
     547     */
     548    public function before_delete_attachment( $post_id ) {
     549        $images_restore = null !== get_option( 'iloveimg_images_to_restore', null ) ? json_decode( get_option( 'iloveimg_images_to_restore' ), true ) : array();
     550        $key_founded    = array_search( $post_id, $images_restore, true );
     551
     552        if ( ! in_array( $post_id, $images_restore, true ) ) {
     553            return;
     554        }
     555
     556        if ( false !== $key_founded ) {
     557            unset( $images_restore[ $key_founded ] );
     558            wp_delete_file( ILOVE_IMG_COMPRESS_BACKUP_FOLDER . basename( get_attached_file( $post_id ) ) );
     559            Ilove_Img_Compress_Resources::update_option( 'iloveimg_images_to_restore', wp_json_encode( $images_restore ) );
     560        }
     561    }
    524562}
  • iloveimg/tags/2.2.6/admin/Ilove_Img_Compress_Resources.php

    r3194405 r3224285  
    274274        $img_nonce = Ilove_Img_Compress_Plugin::get_img_nonce();
    275275
    276         if ( strpos( $post->post_mime_type, 'image/jpg' ) !== false || strpos( $post->post_mime_type, 'image/jpeg' ) !== false || strpos( $post->post_mime_type, 'image/png' ) !== false || strpos( $post->post_mime_type, 'image/gif' ) !== false ) :
     276        if ( in_array( $post->post_mime_type, Ilove_Img_Compress_Plugin::$accepted_file_format, true ) ) :
    277277            $_sizes            = get_post_meta( $column_id, 'iloveimg_compress', true );
    278278            $status_compress   = (int) get_post_meta( $column_id, 'iloveimg_status_compress', true );
     
    575575     * @param  string    $option Name of the option to update. Expected to not be SQL-escaped.
    576576     * @param  mixed     $value Option value. Must be serializable if non-scalar. Expected to not be SQL-escaped.
     577     * @param  bool      $update_all_sites Optional. Whether to update all sites in the network.
    577578     * @param  bool|null $autoload Optional. Whether to load the option when WordPress starts up. Accepts a boolean, or null.
    578579     */
    579     public static function update_option( $option, $value, $autoload = null ) {
     580    public static function update_option( $option, $value, $update_all_sites = false, $autoload = null ) {
    580581
    581582        if ( ! is_multisite() ) {
     
    584585        }
    585586
    586         $sites = get_sites();
    587         foreach ( $sites as $site ) {
    588             switch_to_blog( (int) $site->blog_id );
    589             update_option( $option, $value, $autoload );
    590             restore_current_blog();
    591         }
     587        if ( ! $update_all_sites ) {
     588            self::switch_update_blog( get_current_blog_id(), $option, $value, $autoload );
     589            return;
     590        }
     591
     592        $sites = get_sites();
     593        foreach ( $sites as $site ) {
     594            self::switch_update_blog( (int) $site->blog_id, $option, $value, $autoload );
     595        }
    592596    }
     597
     598    /**
     599     * Switch to blog and update option
     600     *
     601     * @since  2.2.6
     602     * @param  int       $blog_id ID of the blog to switch to.
     603     * @param  string    $option Name of the option to update.
     604     * @param  mixed     $value Option value.
     605     * @param  bool|null $autoload Whether to load the option when WordPress starts up.
     606     */
     607    private static function switch_update_blog( $blog_id, $option, $value, $autoload ) {
     608        switch_to_blog( $blog_id );
     609        update_option( $option, $value, $autoload );
     610        restore_current_blog();
     611    }
    593612}
  • iloveimg/tags/2.2.6/composer.json

    r3194405 r3224285  
    1515    },
    1616    "require-dev": {
    17         "phpstan/phpstan": "^1.12",
    18         "szepeviktor/phpstan-wordpress": "^1.3",
     17        "phpstan/phpstan": "^2.1",
     18        "szepeviktor/phpstan-wordpress": "^2.0",
    1919        "phpstan/extension-installer": "^1.4",
    2020        "wp-coding-standards/wpcs": "^3.0"
  • iloveimg/tags/2.2.6/ilove-img-compress.php

    r3194405 r3224285  
    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.5
     13 * Version:           2.2.6
    1414 * Requires at least: 5.3
    1515 * Requires PHP:      7.4
     
    100100 */
    101101function ilove_img_compress_activate() {
    102     Ilove_Img_Compress_Resources::update_option( 'ilove_img_compress_db_version', ILOVE_IMG_COMPRESS_DB_VERSION );
     102    Ilove_Img_Compress_Resources::update_option( 'ilove_img_compress_db_version', ILOVE_IMG_COMPRESS_DB_VERSION, true );
    103103
    104104    if ( ! file_exists( ILOVE_IMG_COMPRESS_BACKUP_FOLDER ) ) {
     
    122122                    'iloveimg_field_backup'           => 'on',
    123123                )
    124             )
     124            ),
     125            true
    125126        );
    126127    } else {
     
    129130        if ( is_serialized( $old_data ) ) {
    130131            $old_data_serialize = unserialize( get_option( 'iloveimg_options_compress' ) ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.serialize_unserialize
    131             Ilove_Img_Compress_Resources::update_option( 'iloveimg_options_compress', wp_json_encode( $old_data_serialize ) );
     132            Ilove_Img_Compress_Resources::update_option( 'iloveimg_options_compress', wp_json_encode( $old_data_serialize ), true );
    132133        }
    133134    }
  • iloveimg/tags/2.2.6/package.json

    r3194405 r3224285  
    1616    "gulp-if": "^3.0.0",
    1717    "gulp-rename": "^2.0.0",
    18     "gulp-sass": "^5.1.0",
     18    "gulp-sass": "^6.0.0",
    1919    "gulp-sourcemaps": "^3.0.0",
    2020    "gulp-uglify": "^3.0.2",
    2121    "merge-stream": "^2.0.0",
    22     "sass": "^1.81"
     22    "sass": "^1.83"
    2323  }
    2424}
  • iloveimg/tags/2.2.6/phpstan.neon

    r3088387 r3224285  
    88            analyseAndScan:
    99                    - vendor
    10                     - node_modules
     10                    - node_modules?
    1111            analyse:
    1212                    - vendor/ilovepdf/iloveimg-php
  • iloveimg/tags/2.2.6/readme.txt

    r3194405 r3224285  
    11=== Image Compressor & Optimizer - iLoveIMG ===
    22Plugin Name: Image Compressor & Optimizer - iLoveIMG
    3 Version: 2.2.5
     3Version: 2.2.6
    44Author: iLovePDF
    55Author URI: https://www.iloveimg.com/
     
    88Requires at least: 5.3
    99Tested up to: 6.7
    10 Stable tag: 2.2.5
     10Stable tag: 2.2.6
    1111Requires PHP: 7.4
    1212License: GPLv2 or later
     
    9494
    9595== Changelog ==
     96
     97= 2.2.6 =
     98Improved
     99* Update Libraries.
     100* Improved multisite support.
     101* If a file is deleted from wordpress, it will also be deleted from the iloveimg-backup folder.
     102
     103Fixed
     104* Thumbnails and other intermediate sizes coming from a PDF file were compressed.
    96105
    97106= 2.2.5 =
  • iloveimg/tags/2.2.6/vendor/autoload.php

    r3194405 r3224285  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit8eb75759ed79481defcfa275893544da::getLoader();
     25return ComposerAutoloaderInitca264d8dde67813376c567ae25ecc7cd::getLoader();
  • iloveimg/tags/2.2.6/vendor/composer/InstalledVersions.php

    r2995894 r3224285  
    323323
    324324        $installed = array();
     325        $copiedLocalDir = false;
    325326
    326327        if (self::$canGetVendors) {
     
    331332                    /** @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 */
    332333                    $required = require $vendorDir.'/composer/installed.php';
    333                     $installed[] = self::$installedByVendor[$vendorDir] = $required;
    334                     if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
    335                         self::$installed = $installed[count($installed) - 1];
     334                    self::$installedByVendor[$vendorDir] = $required;
     335                    $installed[] = $required;
     336                    if (strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
     337                        self::$installed = $required;
     338                        $copiedLocalDir = true;
    336339                    }
    337340                }
     
    351354        }
    352355
    353         if (self::$installed !== array()) {
     356        if (self::$installed !== array() && !$copiedLocalDir) {
    354357            $installed[] = self::$installed;
    355358        }
  • iloveimg/tags/2.2.6/vendor/composer/autoload_real.php

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

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

    r3194405 r3224285  
    8484        {
    8585            "name": "firebase/php-jwt",
    86             "version": "v6.10.1",
    87             "version_normalized": "6.10.1.0",
     86            "version": "v6.10.2",
     87            "version_normalized": "6.10.2.0",
    8888            "source": {
    8989                "type": "git",
    9090                "url": "https://github.com/firebase/php-jwt.git",
    91                 "reference": "500501c2ce893c824c801da135d02661199f60c5"
    92             },
    93             "dist": {
    94                 "type": "zip",
    95                 "url": "https://api.github.com/repos/firebase/php-jwt/zipball/500501c2ce893c824c801da135d02661199f60c5",
    96                 "reference": "500501c2ce893c824c801da135d02661199f60c5",
     91                "reference": "30c19ed0f3264cb660ea496895cfb6ef7ee3653b"
     92            },
     93            "dist": {
     94                "type": "zip",
     95                "url": "https://api.github.com/repos/firebase/php-jwt/zipball/30c19ed0f3264cb660ea496895cfb6ef7ee3653b",
     96                "reference": "30c19ed0f3264cb660ea496895cfb6ef7ee3653b",
    9797                "shasum": ""
    9898            },
     
    112112                "paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present"
    113113            },
    114             "time": "2024-05-18T18:05:11+00:00",
     114            "time": "2024-11-24T11:22:49+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.10.1"
     146                "source": "https://github.com/firebase/php-jwt/tree/v6.10.2"
    147147            },
    148148            "install-path": "../firebase/php-jwt"
     
    536536        {
    537537            "name": "php-stubs/wordpress-stubs",
    538             "version": "v6.6.2",
    539             "version_normalized": "6.6.2.0",
     538            "version": "v6.7.1",
     539            "version_normalized": "6.7.1.0",
    540540            "source": {
    541541                "type": "git",
    542542                "url": "https://github.com/php-stubs/wordpress-stubs.git",
    543                 "reference": "f50fd7ed45894d036e4fef9ab7e5bbbaff6a30cc"
    544             },
    545             "dist": {
    546                 "type": "zip",
    547                 "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/f50fd7ed45894d036e4fef9ab7e5bbbaff6a30cc",
    548                 "reference": "f50fd7ed45894d036e4fef9ab7e5bbbaff6a30cc",
     543                "reference": "83448e918bf06d1ed3d67ceb6a985fc266a02fd1"
     544            },
     545            "dist": {
     546                "type": "zip",
     547                "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/83448e918bf06d1ed3d67ceb6a985fc266a02fd1",
     548                "reference": "83448e918bf06d1ed3d67ceb6a985fc266a02fd1",
    549549                "shasum": ""
    550550            },
     
    555555                "php-stubs/generator": "^0.8.3",
    556556                "phpdocumentor/reflection-docblock": "^5.4.1",
    557                 "phpstan/phpstan": "^1.10.49",
     557                "phpstan/phpstan": "^1.11",
    558558                "phpunit/phpunit": "^9.5",
    559                 "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1.0",
     559                "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1.1.1",
    560560                "wp-coding-standards/wpcs": "3.1.0 as 2.3.0"
    561561            },
     
    565565                "szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan"
    566566            },
    567             "time": "2024-09-30T07:10:48+00:00",
     567            "time": "2024-11-24T03:57:09+00:00",
    568568            "type": "library",
    569569            "installation-source": "dist",
     
    581581            "support": {
    582582                "issues": "https://github.com/php-stubs/wordpress-stubs/issues",
    583                 "source": "https://github.com/php-stubs/wordpress-stubs/tree/v6.6.2"
     583                "source": "https://github.com/php-stubs/wordpress-stubs/tree/v6.7.1"
    584584            },
    585585            "install-path": "../php-stubs/wordpress-stubs"
     
    810810        {
    811811            "name": "phpstan/phpstan",
    812             "version": "1.12.11",
    813             "version_normalized": "1.12.11.0",
     812            "version": "2.1.1",
     813            "version_normalized": "2.1.1.0",
    814814            "source": {
    815815                "type": "git",
    816816                "url": "https://github.com/phpstan/phpstan.git",
    817                 "reference": "0d1fc20a962a91be578bcfe7cf939e6e1a2ff733"
    818             },
    819             "dist": {
    820                 "type": "zip",
    821                 "url": "https://api.github.com/repos/phpstan/phpstan/zipball/0d1fc20a962a91be578bcfe7cf939e6e1a2ff733",
    822                 "reference": "0d1fc20a962a91be578bcfe7cf939e6e1a2ff733",
    823                 "shasum": ""
    824             },
    825             "require": {
    826                 "php": "^7.2|^8.0"
     817                "reference": "cd6e973e04b4c2b94c86e8612b5a65f0da0e08e7"
     818            },
     819            "dist": {
     820                "type": "zip",
     821                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/cd6e973e04b4c2b94c86e8612b5a65f0da0e08e7",
     822                "reference": "cd6e973e04b4c2b94c86e8612b5a65f0da0e08e7",
     823                "shasum": ""
     824            },
     825            "require": {
     826                "php": "^7.4|^8.0"
    827827            },
    828828            "conflict": {
    829829                "phpstan/phpstan-shim": "*"
    830830            },
    831             "time": "2024-11-17T14:08:01+00:00",
     831            "time": "2025-01-05T16:43:48+00:00",
    832832            "bin": [
    833833                "phpstan",
     
    10871087        {
    10881088            "name": "squizlabs/php_codesniffer",
    1089             "version": "3.11.1",
    1090             "version_normalized": "3.11.1.0",
     1089            "version": "3.11.2",
     1090            "version_normalized": "3.11.2.0",
    10911091            "source": {
    10921092                "type": "git",
    10931093                "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git",
    1094                 "reference": "19473c30efe4f7b3cd42522d0b2e6e7f243c6f87"
    1095             },
    1096             "dist": {
    1097                 "type": "zip",
    1098                 "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/19473c30efe4f7b3cd42522d0b2e6e7f243c6f87",
    1099                 "reference": "19473c30efe4f7b3cd42522d0b2e6e7f243c6f87",
     1094                "reference": "1368f4a58c3c52114b86b1abe8f4098869cb0079"
     1095            },
     1096            "dist": {
     1097                "type": "zip",
     1098                "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/1368f4a58c3c52114b86b1abe8f4098869cb0079",
     1099                "reference": "1368f4a58c3c52114b86b1abe8f4098869cb0079",
    11001100                "shasum": ""
    11011101            },
     
    11091109                "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4"
    11101110            },
    1111             "time": "2024-11-16T12:02:36+00:00",
     1111            "time": "2024-12-11T16:04:26+00:00",
    11121112            "bin": [
    11131113                "bin/phpcbf",
     
    11701170        {
    11711171            "name": "symfony/deprecation-contracts",
    1172             "version": "v3.5.0",
    1173             "version_normalized": "3.5.0.0",
     1172            "version": "v3.5.1",
     1173            "version_normalized": "3.5.1.0",
    11741174            "source": {
    11751175                "type": "git",
    11761176                "url": "https://github.com/symfony/deprecation-contracts.git",
    1177                 "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1"
    1178             },
    1179             "dist": {
    1180                 "type": "zip",
    1181                 "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1",
    1182                 "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1",
     1177                "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6"
     1178            },
     1179            "dist": {
     1180                "type": "zip",
     1181                "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6",
     1182                "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6",
    11831183                "shasum": ""
    11841184            },
     
    11861186                "php": ">=8.1"
    11871187            },
    1188             "time": "2024-04-18T09:32:20+00:00",
     1188            "time": "2024-09-25T14:20:29+00:00",
    11891189            "type": "library",
    11901190            "extra": {
     1191                "thanks": {
     1192                    "url": "https://github.com/symfony/contracts",
     1193                    "name": "symfony/contracts"
     1194                },
    11911195                "branch-alias": {
    11921196                    "dev-main": "3.5-dev"
    1193                 },
    1194                 "thanks": {
    1195                     "name": "symfony/contracts",
    1196                     "url": "https://github.com/symfony/contracts"
    11971197                }
    11981198            },
     
    12201220            "homepage": "https://symfony.com",
    12211221            "support": {
    1222                 "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.0"
     1222                "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.1"
    12231223            },
    12241224            "funding": [
     
    12391239        },
    12401240        {
    1241             "name": "symfony/polyfill-php73",
    1242             "version": "v1.31.0",
    1243             "version_normalized": "1.31.0.0",
    1244             "source": {
    1245                 "type": "git",
    1246                 "url": "https://github.com/symfony/polyfill-php73.git",
    1247                 "reference": "0f68c03565dcaaf25a890667542e8bd75fe7e5bb"
    1248             },
    1249             "dist": {
    1250                 "type": "zip",
    1251                 "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/0f68c03565dcaaf25a890667542e8bd75fe7e5bb",
    1252                 "reference": "0f68c03565dcaaf25a890667542e8bd75fe7e5bb",
    1253                 "shasum": ""
    1254             },
    1255             "require": {
    1256                 "php": ">=7.2"
    1257             },
    1258             "time": "2024-09-09T11:45:10+00:00",
    1259             "type": "library",
    1260             "extra": {
    1261                 "thanks": {
    1262                     "name": "symfony/polyfill",
    1263                     "url": "https://github.com/symfony/polyfill"
    1264                 }
    1265             },
    1266             "installation-source": "dist",
    1267             "autoload": {
    1268                 "files": [
    1269                     "bootstrap.php"
    1270                 ],
    1271                 "psr-4": {
    1272                     "Symfony\\Polyfill\\Php73\\": ""
    1273                 },
    1274                 "classmap": [
    1275                     "Resources/stubs"
    1276                 ]
    1277             },
    1278             "notification-url": "https://packagist.org/downloads/",
    1279             "license": [
    1280                 "MIT"
    1281             ],
    1282             "authors": [
    1283                 {
    1284                     "name": "Nicolas Grekas",
    1285                     "email": "p@tchwork.com"
    1286                 },
    1287                 {
    1288                     "name": "Symfony Community",
    1289                     "homepage": "https://symfony.com/contributors"
    1290                 }
    1291             ],
    1292             "description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions",
    1293             "homepage": "https://symfony.com",
    1294             "keywords": [
    1295                 "compatibility",
    1296                 "polyfill",
    1297                 "portable",
    1298                 "shim"
    1299             ],
    1300             "support": {
    1301                 "source": "https://github.com/symfony/polyfill-php73/tree/v1.31.0"
    1302             },
    1303             "funding": [
    1304                 {
    1305                     "url": "https://symfony.com/sponsor",
    1306                     "type": "custom"
    1307                 },
    1308                 {
    1309                     "url": "https://github.com/fabpot",
    1310                     "type": "github"
    1311                 },
    1312                 {
    1313                     "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
    1314                     "type": "tidelift"
    1315                 }
    1316             ],
    1317             "install-path": "../symfony/polyfill-php73"
    1318         },
    1319         {
    13201241            "name": "szepeviktor/phpstan-wordpress",
    1321             "version": "v1.3.5",
    1322             "version_normalized": "1.3.5.0",
     1242            "version": "v2.0.1",
     1243            "version_normalized": "2.0.1.0",
    13231244            "source": {
    13241245                "type": "git",
    13251246                "url": "https://github.com/szepeviktor/phpstan-wordpress.git",
    1326                 "reference": "7f8cfe992faa96b6a33bbd75c7bace98864161e7"
    1327             },
    1328             "dist": {
    1329                 "type": "zip",
    1330                 "url": "https://api.github.com/repos/szepeviktor/phpstan-wordpress/zipball/7f8cfe992faa96b6a33bbd75c7bace98864161e7",
    1331                 "reference": "7f8cfe992faa96b6a33bbd75c7bace98864161e7",
    1332                 "shasum": ""
    1333             },
    1334             "require": {
    1335                 "php": "^7.2 || ^8.0",
    1336                 "php-stubs/wordpress-stubs": "^4.7 || ^5.0 || ^6.0",
    1337                 "phpstan/phpstan": "^1.10.31",
    1338                 "symfony/polyfill-php73": "^1.12.0"
     1247                "reference": "f7beb13cd22998e3d913fdb897a1e2553ccd637e"
     1248            },
     1249            "dist": {
     1250                "type": "zip",
     1251                "url": "https://api.github.com/repos/szepeviktor/phpstan-wordpress/zipball/f7beb13cd22998e3d913fdb897a1e2553ccd637e",
     1252                "reference": "f7beb13cd22998e3d913fdb897a1e2553ccd637e",
     1253                "shasum": ""
     1254            },
     1255            "require": {
     1256                "php": "^7.4 || ^8.0",
     1257                "php-stubs/wordpress-stubs": "^6.6.2",
     1258                "phpstan/phpstan": "^2.0"
    13391259            },
    13401260            "require-dev": {
     
    13421262                "dealerdirect/phpcodesniffer-composer-installer": "^1.0",
    13431263                "php-parallel-lint/php-parallel-lint": "^1.1",
    1344                 "phpstan/phpstan-strict-rules": "^1.2",
    1345                 "phpunit/phpunit": "^8.0 || ^9.0",
     1264                "phpstan/phpstan-strict-rules": "^2.0",
     1265                "phpunit/phpunit": "^9.0",
    13461266                "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1.0",
    13471267                "wp-coding-standards/wpcs": "3.1.0 as 2.3.0"
     
    13501270                "swissspidy/phpstan-no-private": "Detect usage of internal core functions, classes and methods"
    13511271            },
    1352             "time": "2024-06-28T22:27:19+00:00",
     1272            "time": "2024-12-01T02:13:05+00:00",
    13531273            "type": "phpstan-extension",
    13541274            "extra": {
     
    13791299            "support": {
    13801300                "issues": "https://github.com/szepeviktor/phpstan-wordpress/issues",
    1381                 "source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v1.3.5"
     1301                "source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v2.0.1"
    13821302            },
    13831303            "install-path": "../szepeviktor/phpstan-wordpress"
     
    14621382        "phpstan/phpstan",
    14631383        "squizlabs/php_codesniffer",
    1464         "symfony/polyfill-php73",
    14651384        "szepeviktor/phpstan-wordpress",
    14661385        "wp-coding-standards/wpcs"
  • iloveimg/tags/2.2.6/vendor/composer/installed.php

    r3194405 r3224285  
    44        'pretty_version' => 'dev-develop',
    55        'version' => 'dev-develop',
    6         'reference' => '4466ccb47ee271d6417bb3a45c58f671961c4ffd',
     6        'reference' => 'ac9c7d802737fdae0c0e204e0e7aebc19fcd694b',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        'firebase/php-jwt' => array(
    23             'pretty_version' => 'v6.10.1',
    24             'version' => '6.10.1.0',
    25             'reference' => '500501c2ce893c824c801da135d02661199f60c5',
     23            'pretty_version' => 'v6.10.2',
     24            'version' => '6.10.2.0',
     25            'reference' => '30c19ed0f3264cb660ea496895cfb6ef7ee3653b',
    2626            'type' => 'library',
    2727            'install_path' => __DIR__ . '/../firebase/php-jwt',
     
    7070            'pretty_version' => 'dev-develop',
    7171            'version' => 'dev-develop',
    72             'reference' => '4466ccb47ee271d6417bb3a45c58f671961c4ffd',
     72            'reference' => 'ac9c7d802737fdae0c0e204e0e7aebc19fcd694b',
    7373            'type' => 'wordpress-plugin',
    7474            'install_path' => __DIR__ . '/../../',
     
    7777        ),
    7878        'php-stubs/wordpress-stubs' => array(
    79             'pretty_version' => 'v6.6.2',
    80             'version' => '6.6.2.0',
    81             'reference' => 'f50fd7ed45894d036e4fef9ab7e5bbbaff6a30cc',
     79            'pretty_version' => 'v6.7.1',
     80            'version' => '6.7.1.0',
     81            'reference' => '83448e918bf06d1ed3d67ceb6a985fc266a02fd1',
    8282            'type' => 'library',
    8383            'install_path' => __DIR__ . '/../php-stubs/wordpress-stubs',
     
    113113        ),
    114114        'phpstan/phpstan' => array(
    115             'pretty_version' => '1.12.11',
    116             'version' => '1.12.11.0',
    117             'reference' => '0d1fc20a962a91be578bcfe7cf939e6e1a2ff733',
     115            'pretty_version' => '2.1.1',
     116            'version' => '2.1.1.0',
     117            'reference' => 'cd6e973e04b4c2b94c86e8612b5a65f0da0e08e7',
    118118            'type' => 'library',
    119119            'install_path' => __DIR__ . '/../phpstan/phpstan',
     
    176176        ),
    177177        'squizlabs/php_codesniffer' => array(
    178             'pretty_version' => '3.11.1',
    179             'version' => '3.11.1.0',
    180             'reference' => '19473c30efe4f7b3cd42522d0b2e6e7f243c6f87',
     178            'pretty_version' => '3.11.2',
     179            'version' => '3.11.2.0',
     180            'reference' => '1368f4a58c3c52114b86b1abe8f4098869cb0079',
    181181            'type' => 'library',
    182182            'install_path' => __DIR__ . '/../squizlabs/php_codesniffer',
     
    185185        ),
    186186        'symfony/deprecation-contracts' => array(
    187             'pretty_version' => 'v3.5.0',
    188             'version' => '3.5.0.0',
    189             'reference' => '0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1',
     187            'pretty_version' => 'v3.5.1',
     188            'version' => '3.5.1.0',
     189            'reference' => '74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6',
    190190            'type' => 'library',
    191191            'install_path' => __DIR__ . '/../symfony/deprecation-contracts',
     
    193193            'dev_requirement' => false,
    194194        ),
    195         'symfony/polyfill-php73' => array(
    196             'pretty_version' => 'v1.31.0',
    197             'version' => '1.31.0.0',
    198             'reference' => '0f68c03565dcaaf25a890667542e8bd75fe7e5bb',
    199             'type' => 'library',
    200             'install_path' => __DIR__ . '/../symfony/polyfill-php73',
    201             'aliases' => array(),
    202             'dev_requirement' => true,
    203         ),
    204195        'szepeviktor/phpstan-wordpress' => array(
    205             'pretty_version' => 'v1.3.5',
    206             'version' => '1.3.5.0',
    207             'reference' => '7f8cfe992faa96b6a33bbd75c7bace98864161e7',
     196            'pretty_version' => 'v2.0.1',
     197            'version' => '2.0.1.0',
     198            'reference' => 'f7beb13cd22998e3d913fdb897a1e2553ccd637e',
    208199            'type' => 'phpstan-extension',
    209200            'install_path' => __DIR__ . '/../szepeviktor/phpstan-wordpress',
  • iloveimg/tags/2.2.6/vendor/firebase/php-jwt/CHANGELOG.md

    r3165770 r3224285  
    11# Changelog
     2
     3## [6.10.2](https://github.com/firebase/php-jwt/compare/v6.10.1...v6.10.2) (2024-11-24)
     4
     5
     6### Bug Fixes
     7
     8* Mitigate PHP8.4 deprecation warnings ([#570](https://github.com/firebase/php-jwt/issues/570)) ([76808fa](https://github.com/firebase/php-jwt/commit/76808fa227f3811aa5cdb3bf81233714b799a5b5))
     9* support php 8.4 ([#583](https://github.com/firebase/php-jwt/issues/583)) ([e3d68b0](https://github.com/firebase/php-jwt/commit/e3d68b044421339443c74199edd020e03fb1887e))
    210
    311## [6.10.1](https://github.com/firebase/php-jwt/compare/v6.10.0...v6.10.1) (2024-05-18)
  • iloveimg/tags/2.2.6/vendor/firebase/php-jwt/src/CachedKeySet.php

    r3165770 r3224285  
    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(),
  • iloveimg/tags/2.2.6/vendor/firebase/php-jwt/src/JWK.php

    r3165770 r3224285  
    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)) {
     
    213213            );
    214214
    215         return sprintf(
     215        return \sprintf(
    216216            "-----BEGIN PUBLIC KEY-----\n%s\n-----END PUBLIC KEY-----\n",
    217217            wordwrap(base64_encode($pem), 64, "\n", true)
  • iloveimg/tags/2.2.6/vendor/firebase/php-jwt/src/JWT.php

    r3165770 r3224285  
    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) && \is_array($head)) {
     207        if (isset($head)) {
    208208            $header = \array_merge($header, $head);
    209209        }
     
    388388    public static function jsonEncode(array $input): string
    389389    {
    390         if (PHP_VERSION_ID >= 50400) {
    391             $json = \json_encode($input, \JSON_UNESCAPED_SLASHES);
    392         } else {
    393             // PHP 5.3 only
    394             $json = \json_encode($input);
    395         }
     390        $json = \json_encode($input, \JSON_UNESCAPED_SLASHES);
    396391        if ($errno = \json_last_error()) {
    397392            self::handleJsonError($errno);
  • iloveimg/trunk/.github/workflows/main.yml

    r2995254 r3224285  
    1111      - name: Checkout code
    1212        uses: actions/checkout@v2
     13      - name: Install SVN
     14        run: sudo apt-get update && sudo apt-get install -y subversion
    1315      - name: WordPress Plugin Deploy
    1416        id: deploy
  • iloveimg/trunk/admin/Ilove_Img_Compress_Plugin.php

    r3194405 r3224285  
    2020     * @var      string    VERSION    The current version of the plugin.
    2121     */
    22     const VERSION = '2.2.5';
     22    const VERSION = '2.2.6';
    2323
    2424    /**
     
    3939     */
    4040    protected static $img_nonce;
     41
     42    /**
     43     * File formats.
     44     *
     45     * @since    2.2.6
     46     * @access   public
     47     * @var      array    $accepted_file_format    List of accepted file formats.
     48     */
     49    public static $accepted_file_format = array( 'image/jpeg', 'image/jpg', 'image/png', 'image/gif', 'image/svg+xml' );
    4150
    4251    /**
     
    8190
    8291        // Process attachment metadata.
    83         add_filter( 'wp_generate_attachment_metadata', array( $this, 'process_attachment' ), 10, 2 );
     92        add_filter( 'wp_generate_attachment_metadata', array( $this, 'process_attachment' ), 11, 2 );
     93        add_filter( 'delete_attachment', array( $this, 'before_delete_attachment' ) );
    8494
    8595        // Display media information in the attachment submit box.
     
    249259     */
    250260    public function process_attachment( $metadata, $attachment_id ) {
     261        $file = get_post( $attachment_id );
     262
     263        if ( ! in_array( $file->post_mime_type, self::$accepted_file_format, true ) ) {
     264            return $metadata;
     265        }
     266
    251267        update_post_meta( $attachment_id, 'iloveimg_status_compress', 0 ); // status no compressed
    252268
     
    365381     */
    366382    public function show_media_info( $post ) {
    367         $mime_type_accepted = array( 'image/jpeg', 'image/png', 'image/gif' );
    368 
    369         if ( in_array( $post->post_mime_type, $mime_type_accepted, true ) ) {
     383
     384        if ( in_array( $post->post_mime_type, self::$accepted_file_format, true ) ) {
    370385
    371386            echo '<div class="misc-pub-section iloveimg-compress-images">';
     
    522537        wp_die();
    523538    }
     539
     540    /**
     541     * Delete a file from the backup.
     542     *
     543     * It is activated before deleting an attached file. This allows us to delete the file from the backup.
     544     *
     545     * @since 2.2.6
     546     * @param int $post_id Attachment ID.
     547     */
     548    public function before_delete_attachment( $post_id ) {
     549        $images_restore = null !== get_option( 'iloveimg_images_to_restore', null ) ? json_decode( get_option( 'iloveimg_images_to_restore' ), true ) : array();
     550        $key_founded    = array_search( $post_id, $images_restore, true );
     551
     552        if ( ! in_array( $post_id, $images_restore, true ) ) {
     553            return;
     554        }
     555
     556        if ( false !== $key_founded ) {
     557            unset( $images_restore[ $key_founded ] );
     558            wp_delete_file( ILOVE_IMG_COMPRESS_BACKUP_FOLDER . basename( get_attached_file( $post_id ) ) );
     559            Ilove_Img_Compress_Resources::update_option( 'iloveimg_images_to_restore', wp_json_encode( $images_restore ) );
     560        }
     561    }
    524562}
  • iloveimg/trunk/admin/Ilove_Img_Compress_Resources.php

    r3194405 r3224285  
    274274        $img_nonce = Ilove_Img_Compress_Plugin::get_img_nonce();
    275275
    276         if ( strpos( $post->post_mime_type, 'image/jpg' ) !== false || strpos( $post->post_mime_type, 'image/jpeg' ) !== false || strpos( $post->post_mime_type, 'image/png' ) !== false || strpos( $post->post_mime_type, 'image/gif' ) !== false ) :
     276        if ( in_array( $post->post_mime_type, Ilove_Img_Compress_Plugin::$accepted_file_format, true ) ) :
    277277            $_sizes            = get_post_meta( $column_id, 'iloveimg_compress', true );
    278278            $status_compress   = (int) get_post_meta( $column_id, 'iloveimg_status_compress', true );
     
    575575     * @param  string    $option Name of the option to update. Expected to not be SQL-escaped.
    576576     * @param  mixed     $value Option value. Must be serializable if non-scalar. Expected to not be SQL-escaped.
     577     * @param  bool      $update_all_sites Optional. Whether to update all sites in the network.
    577578     * @param  bool|null $autoload Optional. Whether to load the option when WordPress starts up. Accepts a boolean, or null.
    578579     */
    579     public static function update_option( $option, $value, $autoload = null ) {
     580    public static function update_option( $option, $value, $update_all_sites = false, $autoload = null ) {
    580581
    581582        if ( ! is_multisite() ) {
     
    584585        }
    585586
    586         $sites = get_sites();
    587         foreach ( $sites as $site ) {
    588             switch_to_blog( (int) $site->blog_id );
    589             update_option( $option, $value, $autoload );
    590             restore_current_blog();
    591         }
     587        if ( ! $update_all_sites ) {
     588            self::switch_update_blog( get_current_blog_id(), $option, $value, $autoload );
     589            return;
     590        }
     591
     592        $sites = get_sites();
     593        foreach ( $sites as $site ) {
     594            self::switch_update_blog( (int) $site->blog_id, $option, $value, $autoload );
     595        }
    592596    }
     597
     598    /**
     599     * Switch to blog and update option
     600     *
     601     * @since  2.2.6
     602     * @param  int       $blog_id ID of the blog to switch to.
     603     * @param  string    $option Name of the option to update.
     604     * @param  mixed     $value Option value.
     605     * @param  bool|null $autoload Whether to load the option when WordPress starts up.
     606     */
     607    private static function switch_update_blog( $blog_id, $option, $value, $autoload ) {
     608        switch_to_blog( $blog_id );
     609        update_option( $option, $value, $autoload );
     610        restore_current_blog();
     611    }
    593612}
  • iloveimg/trunk/composer.json

    r3194405 r3224285  
    1515    },
    1616    "require-dev": {
    17         "phpstan/phpstan": "^1.12",
    18         "szepeviktor/phpstan-wordpress": "^1.3",
     17        "phpstan/phpstan": "^2.1",
     18        "szepeviktor/phpstan-wordpress": "^2.0",
    1919        "phpstan/extension-installer": "^1.4",
    2020        "wp-coding-standards/wpcs": "^3.0"
  • iloveimg/trunk/ilove-img-compress.php

    r3194405 r3224285  
    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.5
     13 * Version:           2.2.6
    1414 * Requires at least: 5.3
    1515 * Requires PHP:      7.4
     
    100100 */
    101101function ilove_img_compress_activate() {
    102     Ilove_Img_Compress_Resources::update_option( 'ilove_img_compress_db_version', ILOVE_IMG_COMPRESS_DB_VERSION );
     102    Ilove_Img_Compress_Resources::update_option( 'ilove_img_compress_db_version', ILOVE_IMG_COMPRESS_DB_VERSION, true );
    103103
    104104    if ( ! file_exists( ILOVE_IMG_COMPRESS_BACKUP_FOLDER ) ) {
     
    122122                    'iloveimg_field_backup'           => 'on',
    123123                )
    124             )
     124            ),
     125            true
    125126        );
    126127    } else {
     
    129130        if ( is_serialized( $old_data ) ) {
    130131            $old_data_serialize = unserialize( get_option( 'iloveimg_options_compress' ) ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.serialize_unserialize
    131             Ilove_Img_Compress_Resources::update_option( 'iloveimg_options_compress', wp_json_encode( $old_data_serialize ) );
     132            Ilove_Img_Compress_Resources::update_option( 'iloveimg_options_compress', wp_json_encode( $old_data_serialize ), true );
    132133        }
    133134    }
  • iloveimg/trunk/package.json

    r3194405 r3224285  
    1616    "gulp-if": "^3.0.0",
    1717    "gulp-rename": "^2.0.0",
    18     "gulp-sass": "^5.1.0",
     18    "gulp-sass": "^6.0.0",
    1919    "gulp-sourcemaps": "^3.0.0",
    2020    "gulp-uglify": "^3.0.2",
    2121    "merge-stream": "^2.0.0",
    22     "sass": "^1.81"
     22    "sass": "^1.83"
    2323  }
    2424}
  • iloveimg/trunk/phpstan.neon

    r3088387 r3224285  
    88            analyseAndScan:
    99                    - vendor
    10                     - node_modules
     10                    - node_modules?
    1111            analyse:
    1212                    - vendor/ilovepdf/iloveimg-php
  • iloveimg/trunk/readme.txt

    r3194405 r3224285  
    11=== Image Compressor & Optimizer - iLoveIMG ===
    22Plugin Name: Image Compressor & Optimizer - iLoveIMG
    3 Version: 2.2.5
     3Version: 2.2.6
    44Author: iLovePDF
    55Author URI: https://www.iloveimg.com/
     
    88Requires at least: 5.3
    99Tested up to: 6.7
    10 Stable tag: 2.2.5
     10Stable tag: 2.2.6
    1111Requires PHP: 7.4
    1212License: GPLv2 or later
     
    9494
    9595== Changelog ==
     96
     97= 2.2.6 =
     98Improved
     99* Update Libraries.
     100* Improved multisite support.
     101* If a file is deleted from wordpress, it will also be deleted from the iloveimg-backup folder.
     102
     103Fixed
     104* Thumbnails and other intermediate sizes coming from a PDF file were compressed.
    96105
    97106= 2.2.5 =
  • iloveimg/trunk/vendor/autoload.php

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

    r2995894 r3224285  
    323323
    324324        $installed = array();
     325        $copiedLocalDir = false;
    325326
    326327        if (self::$canGetVendors) {
     
    331332                    /** @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 */
    332333                    $required = require $vendorDir.'/composer/installed.php';
    333                     $installed[] = self::$installedByVendor[$vendorDir] = $required;
    334                     if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
    335                         self::$installed = $installed[count($installed) - 1];
     334                    self::$installedByVendor[$vendorDir] = $required;
     335                    $installed[] = $required;
     336                    if (strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
     337                        self::$installed = $required;
     338                        $copiedLocalDir = true;
    336339                    }
    337340                }
     
    351354        }
    352355
    353         if (self::$installed !== array()) {
     356        if (self::$installed !== array() && !$copiedLocalDir) {
    354357            $installed[] = self::$installed;
    355358        }
  • iloveimg/trunk/vendor/composer/autoload_real.php

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

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

    r3194405 r3224285  
    8484        {
    8585            "name": "firebase/php-jwt",
    86             "version": "v6.10.1",
    87             "version_normalized": "6.10.1.0",
     86            "version": "v6.10.2",
     87            "version_normalized": "6.10.2.0",
    8888            "source": {
    8989                "type": "git",
    9090                "url": "https://github.com/firebase/php-jwt.git",
    91                 "reference": "500501c2ce893c824c801da135d02661199f60c5"
    92             },
    93             "dist": {
    94                 "type": "zip",
    95                 "url": "https://api.github.com/repos/firebase/php-jwt/zipball/500501c2ce893c824c801da135d02661199f60c5",
    96                 "reference": "500501c2ce893c824c801da135d02661199f60c5",
     91                "reference": "30c19ed0f3264cb660ea496895cfb6ef7ee3653b"
     92            },
     93            "dist": {
     94                "type": "zip",
     95                "url": "https://api.github.com/repos/firebase/php-jwt/zipball/30c19ed0f3264cb660ea496895cfb6ef7ee3653b",
     96                "reference": "30c19ed0f3264cb660ea496895cfb6ef7ee3653b",
    9797                "shasum": ""
    9898            },
     
    112112                "paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present"
    113113            },
    114             "time": "2024-05-18T18:05:11+00:00",
     114            "time": "2024-11-24T11:22:49+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.10.1"
     146                "source": "https://github.com/firebase/php-jwt/tree/v6.10.2"
    147147            },
    148148            "install-path": "../firebase/php-jwt"
     
    536536        {
    537537            "name": "php-stubs/wordpress-stubs",
    538             "version": "v6.6.2",
    539             "version_normalized": "6.6.2.0",
     538            "version": "v6.7.1",
     539            "version_normalized": "6.7.1.0",
    540540            "source": {
    541541                "type": "git",
    542542                "url": "https://github.com/php-stubs/wordpress-stubs.git",
    543                 "reference": "f50fd7ed45894d036e4fef9ab7e5bbbaff6a30cc"
    544             },
    545             "dist": {
    546                 "type": "zip",
    547                 "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/f50fd7ed45894d036e4fef9ab7e5bbbaff6a30cc",
    548                 "reference": "f50fd7ed45894d036e4fef9ab7e5bbbaff6a30cc",
     543                "reference": "83448e918bf06d1ed3d67ceb6a985fc266a02fd1"
     544            },
     545            "dist": {
     546                "type": "zip",
     547                "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/83448e918bf06d1ed3d67ceb6a985fc266a02fd1",
     548                "reference": "83448e918bf06d1ed3d67ceb6a985fc266a02fd1",
    549549                "shasum": ""
    550550            },
     
    555555                "php-stubs/generator": "^0.8.3",
    556556                "phpdocumentor/reflection-docblock": "^5.4.1",
    557                 "phpstan/phpstan": "^1.10.49",
     557                "phpstan/phpstan": "^1.11",
    558558                "phpunit/phpunit": "^9.5",
    559                 "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1.0",
     559                "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1.1.1",
    560560                "wp-coding-standards/wpcs": "3.1.0 as 2.3.0"
    561561            },
     
    565565                "szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan"
    566566            },
    567             "time": "2024-09-30T07:10:48+00:00",
     567            "time": "2024-11-24T03:57:09+00:00",
    568568            "type": "library",
    569569            "installation-source": "dist",
     
    581581            "support": {
    582582                "issues": "https://github.com/php-stubs/wordpress-stubs/issues",
    583                 "source": "https://github.com/php-stubs/wordpress-stubs/tree/v6.6.2"
     583                "source": "https://github.com/php-stubs/wordpress-stubs/tree/v6.7.1"
    584584            },
    585585            "install-path": "../php-stubs/wordpress-stubs"
     
    810810        {
    811811            "name": "phpstan/phpstan",
    812             "version": "1.12.11",
    813             "version_normalized": "1.12.11.0",
     812            "version": "2.1.1",
     813            "version_normalized": "2.1.1.0",
    814814            "source": {
    815815                "type": "git",
    816816                "url": "https://github.com/phpstan/phpstan.git",
    817                 "reference": "0d1fc20a962a91be578bcfe7cf939e6e1a2ff733"
    818             },
    819             "dist": {
    820                 "type": "zip",
    821                 "url": "https://api.github.com/repos/phpstan/phpstan/zipball/0d1fc20a962a91be578bcfe7cf939e6e1a2ff733",
    822                 "reference": "0d1fc20a962a91be578bcfe7cf939e6e1a2ff733",
    823                 "shasum": ""
    824             },
    825             "require": {
    826                 "php": "^7.2|^8.0"
     817                "reference": "cd6e973e04b4c2b94c86e8612b5a65f0da0e08e7"
     818            },
     819            "dist": {
     820                "type": "zip",
     821                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/cd6e973e04b4c2b94c86e8612b5a65f0da0e08e7",
     822                "reference": "cd6e973e04b4c2b94c86e8612b5a65f0da0e08e7",
     823                "shasum": ""
     824            },
     825            "require": {
     826                "php": "^7.4|^8.0"
    827827            },
    828828            "conflict": {
    829829                "phpstan/phpstan-shim": "*"
    830830            },
    831             "time": "2024-11-17T14:08:01+00:00",
     831            "time": "2025-01-05T16:43:48+00:00",
    832832            "bin": [
    833833                "phpstan",
     
    10871087        {
    10881088            "name": "squizlabs/php_codesniffer",
    1089             "version": "3.11.1",
    1090             "version_normalized": "3.11.1.0",
     1089            "version": "3.11.2",
     1090            "version_normalized": "3.11.2.0",
    10911091            "source": {
    10921092                "type": "git",
    10931093                "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git",
    1094                 "reference": "19473c30efe4f7b3cd42522d0b2e6e7f243c6f87"
    1095             },
    1096             "dist": {
    1097                 "type": "zip",
    1098                 "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/19473c30efe4f7b3cd42522d0b2e6e7f243c6f87",
    1099                 "reference": "19473c30efe4f7b3cd42522d0b2e6e7f243c6f87",
     1094                "reference": "1368f4a58c3c52114b86b1abe8f4098869cb0079"
     1095            },
     1096            "dist": {
     1097                "type": "zip",
     1098                "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/1368f4a58c3c52114b86b1abe8f4098869cb0079",
     1099                "reference": "1368f4a58c3c52114b86b1abe8f4098869cb0079",
    11001100                "shasum": ""
    11011101            },
     
    11091109                "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4"
    11101110            },
    1111             "time": "2024-11-16T12:02:36+00:00",
     1111            "time": "2024-12-11T16:04:26+00:00",
    11121112            "bin": [
    11131113                "bin/phpcbf",
     
    11701170        {
    11711171            "name": "symfony/deprecation-contracts",
    1172             "version": "v3.5.0",
    1173             "version_normalized": "3.5.0.0",
     1172            "version": "v3.5.1",
     1173            "version_normalized": "3.5.1.0",
    11741174            "source": {
    11751175                "type": "git",
    11761176                "url": "https://github.com/symfony/deprecation-contracts.git",
    1177                 "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1"
    1178             },
    1179             "dist": {
    1180                 "type": "zip",
    1181                 "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1",
    1182                 "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1",
     1177                "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6"
     1178            },
     1179            "dist": {
     1180                "type": "zip",
     1181                "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6",
     1182                "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6",
    11831183                "shasum": ""
    11841184            },
     
    11861186                "php": ">=8.1"
    11871187            },
    1188             "time": "2024-04-18T09:32:20+00:00",
     1188            "time": "2024-09-25T14:20:29+00:00",
    11891189            "type": "library",
    11901190            "extra": {
     1191                "thanks": {
     1192                    "url": "https://github.com/symfony/contracts",
     1193                    "name": "symfony/contracts"
     1194                },
    11911195                "branch-alias": {
    11921196                    "dev-main": "3.5-dev"
    1193                 },
    1194                 "thanks": {
    1195                     "name": "symfony/contracts",
    1196                     "url": "https://github.com/symfony/contracts"
    11971197                }
    11981198            },
     
    12201220            "homepage": "https://symfony.com",
    12211221            "support": {
    1222                 "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.0"
     1222                "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.1"
    12231223            },
    12241224            "funding": [
     
    12391239        },
    12401240        {
    1241             "name": "symfony/polyfill-php73",
    1242             "version": "v1.31.0",
    1243             "version_normalized": "1.31.0.0",
    1244             "source": {
    1245                 "type": "git",
    1246                 "url": "https://github.com/symfony/polyfill-php73.git",
    1247                 "reference": "0f68c03565dcaaf25a890667542e8bd75fe7e5bb"
    1248             },
    1249             "dist": {
    1250                 "type": "zip",
    1251                 "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/0f68c03565dcaaf25a890667542e8bd75fe7e5bb",
    1252                 "reference": "0f68c03565dcaaf25a890667542e8bd75fe7e5bb",
    1253                 "shasum": ""
    1254             },
    1255             "require": {
    1256                 "php": ">=7.2"
    1257             },
    1258             "time": "2024-09-09T11:45:10+00:00",
    1259             "type": "library",
    1260             "extra": {
    1261                 "thanks": {
    1262                     "name": "symfony/polyfill",
    1263                     "url": "https://github.com/symfony/polyfill"
    1264                 }
    1265             },
    1266             "installation-source": "dist",
    1267             "autoload": {
    1268                 "files": [
    1269                     "bootstrap.php"
    1270                 ],
    1271                 "psr-4": {
    1272                     "Symfony\\Polyfill\\Php73\\": ""
    1273                 },
    1274                 "classmap": [
    1275                     "Resources/stubs"
    1276                 ]
    1277             },
    1278             "notification-url": "https://packagist.org/downloads/",
    1279             "license": [
    1280                 "MIT"
    1281             ],
    1282             "authors": [
    1283                 {
    1284                     "name": "Nicolas Grekas",
    1285                     "email": "p@tchwork.com"
    1286                 },
    1287                 {
    1288                     "name": "Symfony Community",
    1289                     "homepage": "https://symfony.com/contributors"
    1290                 }
    1291             ],
    1292             "description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions",
    1293             "homepage": "https://symfony.com",
    1294             "keywords": [
    1295                 "compatibility",
    1296                 "polyfill",
    1297                 "portable",
    1298                 "shim"
    1299             ],
    1300             "support": {
    1301                 "source": "https://github.com/symfony/polyfill-php73/tree/v1.31.0"
    1302             },
    1303             "funding": [
    1304                 {
    1305                     "url": "https://symfony.com/sponsor",
    1306                     "type": "custom"
    1307                 },
    1308                 {
    1309                     "url": "https://github.com/fabpot",
    1310                     "type": "github"
    1311                 },
    1312                 {
    1313                     "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
    1314                     "type": "tidelift"
    1315                 }
    1316             ],
    1317             "install-path": "../symfony/polyfill-php73"
    1318         },
    1319         {
    13201241            "name": "szepeviktor/phpstan-wordpress",
    1321             "version": "v1.3.5",
    1322             "version_normalized": "1.3.5.0",
     1242            "version": "v2.0.1",
     1243            "version_normalized": "2.0.1.0",
    13231244            "source": {
    13241245                "type": "git",
    13251246                "url": "https://github.com/szepeviktor/phpstan-wordpress.git",
    1326                 "reference": "7f8cfe992faa96b6a33bbd75c7bace98864161e7"
    1327             },
    1328             "dist": {
    1329                 "type": "zip",
    1330                 "url": "https://api.github.com/repos/szepeviktor/phpstan-wordpress/zipball/7f8cfe992faa96b6a33bbd75c7bace98864161e7",
    1331                 "reference": "7f8cfe992faa96b6a33bbd75c7bace98864161e7",
    1332                 "shasum": ""
    1333             },
    1334             "require": {
    1335                 "php": "^7.2 || ^8.0",
    1336                 "php-stubs/wordpress-stubs": "^4.7 || ^5.0 || ^6.0",
    1337                 "phpstan/phpstan": "^1.10.31",
    1338                 "symfony/polyfill-php73": "^1.12.0"
     1247                "reference": "f7beb13cd22998e3d913fdb897a1e2553ccd637e"
     1248            },
     1249            "dist": {
     1250                "type": "zip",
     1251                "url": "https://api.github.com/repos/szepeviktor/phpstan-wordpress/zipball/f7beb13cd22998e3d913fdb897a1e2553ccd637e",
     1252                "reference": "f7beb13cd22998e3d913fdb897a1e2553ccd637e",
     1253                "shasum": ""
     1254            },
     1255            "require": {
     1256                "php": "^7.4 || ^8.0",
     1257                "php-stubs/wordpress-stubs": "^6.6.2",
     1258                "phpstan/phpstan": "^2.0"
    13391259            },
    13401260            "require-dev": {
     
    13421262                "dealerdirect/phpcodesniffer-composer-installer": "^1.0",
    13431263                "php-parallel-lint/php-parallel-lint": "^1.1",
    1344                 "phpstan/phpstan-strict-rules": "^1.2",
    1345                 "phpunit/phpunit": "^8.0 || ^9.0",
     1264                "phpstan/phpstan-strict-rules": "^2.0",
     1265                "phpunit/phpunit": "^9.0",
    13461266                "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1.0",
    13471267                "wp-coding-standards/wpcs": "3.1.0 as 2.3.0"
     
    13501270                "swissspidy/phpstan-no-private": "Detect usage of internal core functions, classes and methods"
    13511271            },
    1352             "time": "2024-06-28T22:27:19+00:00",
     1272            "time": "2024-12-01T02:13:05+00:00",
    13531273            "type": "phpstan-extension",
    13541274            "extra": {
     
    13791299            "support": {
    13801300                "issues": "https://github.com/szepeviktor/phpstan-wordpress/issues",
    1381                 "source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v1.3.5"
     1301                "source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v2.0.1"
    13821302            },
    13831303            "install-path": "../szepeviktor/phpstan-wordpress"
     
    14621382        "phpstan/phpstan",
    14631383        "squizlabs/php_codesniffer",
    1464         "symfony/polyfill-php73",
    14651384        "szepeviktor/phpstan-wordpress",
    14661385        "wp-coding-standards/wpcs"
  • iloveimg/trunk/vendor/composer/installed.php

    r3194405 r3224285  
    44        'pretty_version' => 'dev-develop',
    55        'version' => 'dev-develop',
    6         'reference' => '4466ccb47ee271d6417bb3a45c58f671961c4ffd',
     6        'reference' => 'ac9c7d802737fdae0c0e204e0e7aebc19fcd694b',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        'firebase/php-jwt' => array(
    23             'pretty_version' => 'v6.10.1',
    24             'version' => '6.10.1.0',
    25             'reference' => '500501c2ce893c824c801da135d02661199f60c5',
     23            'pretty_version' => 'v6.10.2',
     24            'version' => '6.10.2.0',
     25            'reference' => '30c19ed0f3264cb660ea496895cfb6ef7ee3653b',
    2626            'type' => 'library',
    2727            'install_path' => __DIR__ . '/../firebase/php-jwt',
     
    7070            'pretty_version' => 'dev-develop',
    7171            'version' => 'dev-develop',
    72             'reference' => '4466ccb47ee271d6417bb3a45c58f671961c4ffd',
     72            'reference' => 'ac9c7d802737fdae0c0e204e0e7aebc19fcd694b',
    7373            'type' => 'wordpress-plugin',
    7474            'install_path' => __DIR__ . '/../../',
     
    7777        ),
    7878        'php-stubs/wordpress-stubs' => array(
    79             'pretty_version' => 'v6.6.2',
    80             'version' => '6.6.2.0',
    81             'reference' => 'f50fd7ed45894d036e4fef9ab7e5bbbaff6a30cc',
     79            'pretty_version' => 'v6.7.1',
     80            'version' => '6.7.1.0',
     81            'reference' => '83448e918bf06d1ed3d67ceb6a985fc266a02fd1',
    8282            'type' => 'library',
    8383            'install_path' => __DIR__ . '/../php-stubs/wordpress-stubs',
     
    113113        ),
    114114        'phpstan/phpstan' => array(
    115             'pretty_version' => '1.12.11',
    116             'version' => '1.12.11.0',
    117             'reference' => '0d1fc20a962a91be578bcfe7cf939e6e1a2ff733',
     115            'pretty_version' => '2.1.1',
     116            'version' => '2.1.1.0',
     117            'reference' => 'cd6e973e04b4c2b94c86e8612b5a65f0da0e08e7',
    118118            'type' => 'library',
    119119            'install_path' => __DIR__ . '/../phpstan/phpstan',
     
    176176        ),
    177177        'squizlabs/php_codesniffer' => array(
    178             'pretty_version' => '3.11.1',
    179             'version' => '3.11.1.0',
    180             'reference' => '19473c30efe4f7b3cd42522d0b2e6e7f243c6f87',
     178            'pretty_version' => '3.11.2',
     179            'version' => '3.11.2.0',
     180            'reference' => '1368f4a58c3c52114b86b1abe8f4098869cb0079',
    181181            'type' => 'library',
    182182            'install_path' => __DIR__ . '/../squizlabs/php_codesniffer',
     
    185185        ),
    186186        'symfony/deprecation-contracts' => array(
    187             'pretty_version' => 'v3.5.0',
    188             'version' => '3.5.0.0',
    189             'reference' => '0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1',
     187            'pretty_version' => 'v3.5.1',
     188            'version' => '3.5.1.0',
     189            'reference' => '74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6',
    190190            'type' => 'library',
    191191            'install_path' => __DIR__ . '/../symfony/deprecation-contracts',
     
    193193            'dev_requirement' => false,
    194194        ),
    195         'symfony/polyfill-php73' => array(
    196             'pretty_version' => 'v1.31.0',
    197             'version' => '1.31.0.0',
    198             'reference' => '0f68c03565dcaaf25a890667542e8bd75fe7e5bb',
    199             'type' => 'library',
    200             'install_path' => __DIR__ . '/../symfony/polyfill-php73',
    201             'aliases' => array(),
    202             'dev_requirement' => true,
    203         ),
    204195        'szepeviktor/phpstan-wordpress' => array(
    205             'pretty_version' => 'v1.3.5',
    206             'version' => '1.3.5.0',
    207             'reference' => '7f8cfe992faa96b6a33bbd75c7bace98864161e7',
     196            'pretty_version' => 'v2.0.1',
     197            'version' => '2.0.1.0',
     198            'reference' => 'f7beb13cd22998e3d913fdb897a1e2553ccd637e',
    208199            'type' => 'phpstan-extension',
    209200            'install_path' => __DIR__ . '/../szepeviktor/phpstan-wordpress',
  • iloveimg/trunk/vendor/firebase/php-jwt/CHANGELOG.md

    r3165770 r3224285  
    11# Changelog
     2
     3## [6.10.2](https://github.com/firebase/php-jwt/compare/v6.10.1...v6.10.2) (2024-11-24)
     4
     5
     6### Bug Fixes
     7
     8* Mitigate PHP8.4 deprecation warnings ([#570](https://github.com/firebase/php-jwt/issues/570)) ([76808fa](https://github.com/firebase/php-jwt/commit/76808fa227f3811aa5cdb3bf81233714b799a5b5))
     9* support php 8.4 ([#583](https://github.com/firebase/php-jwt/issues/583)) ([e3d68b0](https://github.com/firebase/php-jwt/commit/e3d68b044421339443c74199edd020e03fb1887e))
    210
    311## [6.10.1](https://github.com/firebase/php-jwt/compare/v6.10.0...v6.10.1) (2024-05-18)
  • iloveimg/trunk/vendor/firebase/php-jwt/src/CachedKeySet.php

    r3165770 r3224285  
    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(),
  • iloveimg/trunk/vendor/firebase/php-jwt/src/JWK.php

    r3165770 r3224285  
    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)) {
     
    213213            );
    214214
    215         return sprintf(
     215        return \sprintf(
    216216            "-----BEGIN PUBLIC KEY-----\n%s\n-----END PUBLIC KEY-----\n",
    217217            wordwrap(base64_encode($pem), 64, "\n", true)
  • iloveimg/trunk/vendor/firebase/php-jwt/src/JWT.php

    r3165770 r3224285  
    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) && \is_array($head)) {
     207        if (isset($head)) {
    208208            $header = \array_merge($header, $head);
    209209        }
     
    388388    public static function jsonEncode(array $input): string
    389389    {
    390         if (PHP_VERSION_ID >= 50400) {
    391             $json = \json_encode($input, \JSON_UNESCAPED_SLASHES);
    392         } else {
    393             // PHP 5.3 only
    394             $json = \json_encode($input);
    395         }
     390        $json = \json_encode($input, \JSON_UNESCAPED_SLASHES);
    396391        if ($errno = \json_last_error()) {
    397392            self::handleJsonError($errno);
Note: See TracChangeset for help on using the changeset viewer.