Changeset 3224285
- Timestamp:
- 01/17/2025 02:02:45 PM (15 months ago)
- Location:
- iloveimg
- Files:
-
- 2 deleted
- 36 edited
- 1 copied
-
tags/2.2.6 (copied) (copied from iloveimg/trunk)
-
tags/2.2.6/.github/workflows/main.yml (modified) (1 diff)
-
tags/2.2.6/admin/Ilove_Img_Compress_Plugin.php (modified) (6 diffs)
-
tags/2.2.6/admin/Ilove_Img_Compress_Resources.php (modified) (3 diffs)
-
tags/2.2.6/composer.json (modified) (1 diff)
-
tags/2.2.6/ilove-img-compress.php (modified) (4 diffs)
-
tags/2.2.6/package.json (modified) (1 diff)
-
tags/2.2.6/phpstan.neon (modified) (1 diff)
-
tags/2.2.6/readme.txt (modified) (3 diffs)
-
tags/2.2.6/vendor/autoload.php (modified) (1 diff)
-
tags/2.2.6/vendor/composer/InstalledVersions.php (modified) (3 diffs)
-
tags/2.2.6/vendor/composer/autoload_real.php (modified) (2 diffs)
-
tags/2.2.6/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/2.2.6/vendor/composer/installed.json (modified) (18 diffs)
-
tags/2.2.6/vendor/composer/installed.php (modified) (8 diffs)
-
tags/2.2.6/vendor/firebase/php-jwt/CHANGELOG.md (modified) (1 diff)
-
tags/2.2.6/vendor/firebase/php-jwt/src/CachedKeySet.php (modified) (2 diffs)
-
tags/2.2.6/vendor/firebase/php-jwt/src/JWK.php (modified) (3 diffs)
-
tags/2.2.6/vendor/firebase/php-jwt/src/JWT.php (modified) (3 diffs)
-
tags/2.2.6/vendor/symfony/polyfill-php73 (deleted)
-
trunk/.github/workflows/main.yml (modified) (1 diff)
-
trunk/admin/Ilove_Img_Compress_Plugin.php (modified) (6 diffs)
-
trunk/admin/Ilove_Img_Compress_Resources.php (modified) (3 diffs)
-
trunk/composer.json (modified) (1 diff)
-
trunk/ilove-img-compress.php (modified) (4 diffs)
-
trunk/package.json (modified) (1 diff)
-
trunk/phpstan.neon (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/InstalledVersions.php (modified) (3 diffs)
-
trunk/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.json (modified) (18 diffs)
-
trunk/vendor/composer/installed.php (modified) (8 diffs)
-
trunk/vendor/firebase/php-jwt/CHANGELOG.md (modified) (1 diff)
-
trunk/vendor/firebase/php-jwt/src/CachedKeySet.php (modified) (2 diffs)
-
trunk/vendor/firebase/php-jwt/src/JWK.php (modified) (3 diffs)
-
trunk/vendor/firebase/php-jwt/src/JWT.php (modified) (3 diffs)
-
trunk/vendor/symfony/polyfill-php73 (deleted)
Legend:
- Unmodified
- Added
- Removed
-
iloveimg/tags/2.2.6/.github/workflows/main.yml
r2995254 r3224285 11 11 - name: Checkout code 12 12 uses: actions/checkout@v2 13 - name: Install SVN 14 run: sudo apt-get update && sudo apt-get install -y subversion 13 15 - name: WordPress Plugin Deploy 14 16 id: deploy -
iloveimg/tags/2.2.6/admin/Ilove_Img_Compress_Plugin.php
r3194405 r3224285 20 20 * @var string VERSION The current version of the plugin. 21 21 */ 22 const VERSION = '2.2. 5';22 const VERSION = '2.2.6'; 23 23 24 24 /** … … 39 39 */ 40 40 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' ); 41 50 42 51 /** … … 81 90 82 91 // 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' ) ); 84 94 85 95 // Display media information in the attachment submit box. … … 249 259 */ 250 260 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 251 267 update_post_meta( $attachment_id, 'iloveimg_status_compress', 0 ); // status no compressed 252 268 … … 365 381 */ 366 382 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 ) ) { 370 385 371 386 echo '<div class="misc-pub-section iloveimg-compress-images">'; … … 522 537 wp_die(); 523 538 } 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 } 524 562 } -
iloveimg/tags/2.2.6/admin/Ilove_Img_Compress_Resources.php
r3194405 r3224285 274 274 $img_nonce = Ilove_Img_Compress_Plugin::get_img_nonce(); 275 275 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 ) ) : 277 277 $_sizes = get_post_meta( $column_id, 'iloveimg_compress', true ); 278 278 $status_compress = (int) get_post_meta( $column_id, 'iloveimg_status_compress', true ); … … 575 575 * @param string $option Name of the option to update. Expected to not be SQL-escaped. 576 576 * @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. 577 578 * @param bool|null $autoload Optional. Whether to load the option when WordPress starts up. Accepts a boolean, or null. 578 579 */ 579 public static function update_option( $option, $value, $ autoload = null ) {580 public static function update_option( $option, $value, $update_all_sites = false, $autoload = null ) { 580 581 581 582 if ( ! is_multisite() ) { … … 584 585 } 585 586 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 } 592 596 } 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 } 593 612 } -
iloveimg/tags/2.2.6/composer.json
r3194405 r3224285 15 15 }, 16 16 "require-dev": { 17 "phpstan/phpstan": "^ 1.12",18 "szepeviktor/phpstan-wordpress": "^ 1.3",17 "phpstan/phpstan": "^2.1", 18 "szepeviktor/phpstan-wordpress": "^2.0", 19 19 "phpstan/extension-installer": "^1.4", 20 20 "wp-coding-standards/wpcs": "^3.0" -
iloveimg/tags/2.2.6/ilove-img-compress.php
r3194405 r3224285 11 11 * Plugin URI: https://iloveapi.com/ 12 12 * 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. 513 * Version: 2.2.6 14 14 * Requires at least: 5.3 15 15 * Requires PHP: 7.4 … … 100 100 */ 101 101 function 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 ); 103 103 104 104 if ( ! file_exists( ILOVE_IMG_COMPRESS_BACKUP_FOLDER ) ) { … … 122 122 'iloveimg_field_backup' => 'on', 123 123 ) 124 ) 124 ), 125 true 125 126 ); 126 127 } else { … … 129 130 if ( is_serialized( $old_data ) ) { 130 131 $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 ); 132 133 } 133 134 } -
iloveimg/tags/2.2.6/package.json
r3194405 r3224285 16 16 "gulp-if": "^3.0.0", 17 17 "gulp-rename": "^2.0.0", 18 "gulp-sass": "^ 5.1.0",18 "gulp-sass": "^6.0.0", 19 19 "gulp-sourcemaps": "^3.0.0", 20 20 "gulp-uglify": "^3.0.2", 21 21 "merge-stream": "^2.0.0", 22 "sass": "^1.8 1"22 "sass": "^1.83" 23 23 } 24 24 } -
iloveimg/tags/2.2.6/phpstan.neon
r3088387 r3224285 8 8 analyseAndScan: 9 9 - vendor 10 - node_modules 10 - node_modules? 11 11 analyse: 12 12 - vendor/ilovepdf/iloveimg-php -
iloveimg/tags/2.2.6/readme.txt
r3194405 r3224285 1 1 === Image Compressor & Optimizer - iLoveIMG === 2 2 Plugin Name: Image Compressor & Optimizer - iLoveIMG 3 Version: 2.2. 53 Version: 2.2.6 4 4 Author: iLovePDF 5 5 Author URI: https://www.iloveimg.com/ … … 8 8 Requires at least: 5.3 9 9 Tested up to: 6.7 10 Stable tag: 2.2. 510 Stable tag: 2.2.6 11 11 Requires PHP: 7.4 12 12 License: GPLv2 or later … … 94 94 95 95 == Changelog == 96 97 = 2.2.6 = 98 Improved 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 103 Fixed 104 * Thumbnails and other intermediate sizes coming from a PDF file were compressed. 96 105 97 106 = 2.2.5 = -
iloveimg/tags/2.2.6/vendor/autoload.php
r3194405 r3224285 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 8eb75759ed79481defcfa275893544da::getLoader();25 return ComposerAutoloaderInitca264d8dde67813376c567ae25ecc7cd::getLoader(); -
iloveimg/tags/2.2.6/vendor/composer/InstalledVersions.php
r2995894 r3224285 323 323 324 324 $installed = array(); 325 $copiedLocalDir = false; 325 326 326 327 if (self::$canGetVendors) { … … 331 332 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 333 $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; 336 339 } 337 340 } … … 351 354 } 352 355 353 if (self::$installed !== array() ) {356 if (self::$installed !== array() && !$copiedLocalDir) { 354 357 $installed[] = self::$installed; 355 358 } -
iloveimg/tags/2.2.6/vendor/composer/autoload_real.php
r3194405 r3224285 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 8eb75759ed79481defcfa275893544da5 class ComposerAutoloaderInitca264d8dde67813376c567ae25ecc7cd 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 8eb75759ed79481defcfa275893544da', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInitca264d8dde67813376c567ae25ecc7cd', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 8eb75759ed79481defcfa275893544da', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInitca264d8dde67813376c567ae25ecc7cd', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 8eb75759ed79481defcfa275893544da::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInitca264d8dde67813376c567ae25ecc7cd::getInitializer($loader)); 33 33 34 34 $loader->register(true); 35 35 36 $filesToLoad = \Composer\Autoload\ComposerStaticInit 8eb75759ed79481defcfa275893544da::$files;36 $filesToLoad = \Composer\Autoload\ComposerStaticInitca264d8dde67813376c567ae25ecc7cd::$files; 37 37 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 38 38 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
iloveimg/tags/2.2.6/vendor/composer/autoload_static.php
r3194405 r3224285 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 8eb75759ed79481defcfa275893544da7 class ComposerStaticInitca264d8dde67813376c567ae25ecc7cd 8 8 { 9 9 public static $files = array ( … … 79 79 { 80 80 return \Closure::bind(function () use ($loader) { 81 $loader->prefixLengthsPsr4 = ComposerStaticInit 8eb75759ed79481defcfa275893544da::$prefixLengthsPsr4;82 $loader->prefixDirsPsr4 = ComposerStaticInit 8eb75759ed79481defcfa275893544da::$prefixDirsPsr4;83 $loader->classMap = ComposerStaticInit 8eb75759ed79481defcfa275893544da::$classMap;81 $loader->prefixLengthsPsr4 = ComposerStaticInitca264d8dde67813376c567ae25ecc7cd::$prefixLengthsPsr4; 82 $loader->prefixDirsPsr4 = ComposerStaticInitca264d8dde67813376c567ae25ecc7cd::$prefixDirsPsr4; 83 $loader->classMap = ComposerStaticInitca264d8dde67813376c567ae25ecc7cd::$classMap; 84 84 85 85 }, null, ClassLoader::class); -
iloveimg/tags/2.2.6/vendor/composer/installed.json
r3194405 r3224285 84 84 { 85 85 "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", 88 88 "source": { 89 89 "type": "git", 90 90 "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", 97 97 "shasum": "" 98 98 }, … … 112 112 "paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present" 113 113 }, 114 "time": "2024- 05-18T18:05:11+00:00",114 "time": "2024-11-24T11:22:49+00:00", 115 115 "type": "library", 116 116 "installation-source": "dist", … … 144 144 "support": { 145 145 "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" 147 147 }, 148 148 "install-path": "../firebase/php-jwt" … … 536 536 { 537 537 "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", 540 540 "source": { 541 541 "type": "git", 542 542 "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", 549 549 "shasum": "" 550 550 }, … … 555 555 "php-stubs/generator": "^0.8.3", 556 556 "phpdocumentor/reflection-docblock": "^5.4.1", 557 "phpstan/phpstan": "^1.1 0.49",557 "phpstan/phpstan": "^1.11", 558 558 "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", 560 560 "wp-coding-standards/wpcs": "3.1.0 as 2.3.0" 561 561 }, … … 565 565 "szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan" 566 566 }, 567 "time": "2024- 09-30T07:10:48+00:00",567 "time": "2024-11-24T03:57:09+00:00", 568 568 "type": "library", 569 569 "installation-source": "dist", … … 581 581 "support": { 582 582 "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" 584 584 }, 585 585 "install-path": "../php-stubs/wordpress-stubs" … … 810 810 { 811 811 "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", 814 814 "source": { 815 815 "type": "git", 816 816 "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" 827 827 }, 828 828 "conflict": { 829 829 "phpstan/phpstan-shim": "*" 830 830 }, 831 "time": "202 4-11-17T14:08:01+00:00",831 "time": "2025-01-05T16:43:48+00:00", 832 832 "bin": [ 833 833 "phpstan", … … 1087 1087 { 1088 1088 "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", 1091 1091 "source": { 1092 1092 "type": "git", 1093 1093 "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", 1094 "reference": "1 9473c30efe4f7b3cd42522d0b2e6e7f243c6f87"1095 }, 1096 "dist": { 1097 "type": "zip", 1098 "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/1 9473c30efe4f7b3cd42522d0b2e6e7f243c6f87",1099 "reference": "1 9473c30efe4f7b3cd42522d0b2e6e7f243c6f87",1094 "reference": "1368f4a58c3c52114b86b1abe8f4098869cb0079" 1095 }, 1096 "dist": { 1097 "type": "zip", 1098 "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/1368f4a58c3c52114b86b1abe8f4098869cb0079", 1099 "reference": "1368f4a58c3c52114b86b1abe8f4098869cb0079", 1100 1100 "shasum": "" 1101 1101 }, … … 1109 1109 "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4" 1110 1110 }, 1111 "time": "2024-1 1-16T12:02:36+00:00",1111 "time": "2024-12-11T16:04:26+00:00", 1112 1112 "bin": [ 1113 1113 "bin/phpcbf", … … 1170 1170 { 1171 1171 "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", 1174 1174 "source": { 1175 1175 "type": "git", 1176 1176 "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", 1183 1183 "shasum": "" 1184 1184 }, … … 1186 1186 "php": ">=8.1" 1187 1187 }, 1188 "time": "2024-0 4-18T09:32:20+00:00",1188 "time": "2024-09-25T14:20:29+00:00", 1189 1189 "type": "library", 1190 1190 "extra": { 1191 "thanks": { 1192 "url": "https://github.com/symfony/contracts", 1193 "name": "symfony/contracts" 1194 }, 1191 1195 "branch-alias": { 1192 1196 "dev-main": "3.5-dev" 1193 },1194 "thanks": {1195 "name": "symfony/contracts",1196 "url": "https://github.com/symfony/contracts"1197 1197 } 1198 1198 }, … … 1220 1220 "homepage": "https://symfony.com", 1221 1221 "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" 1223 1223 }, 1224 1224 "funding": [ … … 1239 1239 }, 1240 1240 { 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 {1320 1241 "name": "szepeviktor/phpstan-wordpress", 1321 "version": "v 1.3.5",1322 "version_normalized": " 1.3.5.0",1242 "version": "v2.0.1", 1243 "version_normalized": "2.0.1.0", 1323 1244 "source": { 1324 1245 "type": "git", 1325 1246 "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" 1339 1259 }, 1340 1260 "require-dev": { … … 1342 1262 "dealerdirect/phpcodesniffer-composer-installer": "^1.0", 1343 1263 "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", 1346 1266 "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1.0", 1347 1267 "wp-coding-standards/wpcs": "3.1.0 as 2.3.0" … … 1350 1270 "swissspidy/phpstan-no-private": "Detect usage of internal core functions, classes and methods" 1351 1271 }, 1352 "time": "2024- 06-28T22:27:19+00:00",1272 "time": "2024-12-01T02:13:05+00:00", 1353 1273 "type": "phpstan-extension", 1354 1274 "extra": { … … 1379 1299 "support": { 1380 1300 "issues": "https://github.com/szepeviktor/phpstan-wordpress/issues", 1381 "source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v 1.3.5"1301 "source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v2.0.1" 1382 1302 }, 1383 1303 "install-path": "../szepeviktor/phpstan-wordpress" … … 1462 1382 "phpstan/phpstan", 1463 1383 "squizlabs/php_codesniffer", 1464 "symfony/polyfill-php73",1465 1384 "szepeviktor/phpstan-wordpress", 1466 1385 "wp-coding-standards/wpcs" -
iloveimg/tags/2.2.6/vendor/composer/installed.php
r3194405 r3224285 4 4 'pretty_version' => 'dev-develop', 5 5 'version' => 'dev-develop', 6 'reference' => ' 4466ccb47ee271d6417bb3a45c58f671961c4ffd',6 'reference' => 'ac9c7d802737fdae0c0e204e0e7aebc19fcd694b', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 21 21 ), 22 22 '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', 26 26 'type' => 'library', 27 27 'install_path' => __DIR__ . '/../firebase/php-jwt', … … 70 70 'pretty_version' => 'dev-develop', 71 71 'version' => 'dev-develop', 72 'reference' => ' 4466ccb47ee271d6417bb3a45c58f671961c4ffd',72 'reference' => 'ac9c7d802737fdae0c0e204e0e7aebc19fcd694b', 73 73 'type' => 'wordpress-plugin', 74 74 'install_path' => __DIR__ . '/../../', … … 77 77 ), 78 78 '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', 82 82 'type' => 'library', 83 83 'install_path' => __DIR__ . '/../php-stubs/wordpress-stubs', … … 113 113 ), 114 114 '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', 118 118 'type' => 'library', 119 119 'install_path' => __DIR__ . '/../phpstan/phpstan', … … 176 176 ), 177 177 'squizlabs/php_codesniffer' => array( 178 'pretty_version' => '3.11. 1',179 'version' => '3.11. 1.0',180 'reference' => '1 9473c30efe4f7b3cd42522d0b2e6e7f243c6f87',178 'pretty_version' => '3.11.2', 179 'version' => '3.11.2.0', 180 'reference' => '1368f4a58c3c52114b86b1abe8f4098869cb0079', 181 181 'type' => 'library', 182 182 'install_path' => __DIR__ . '/../squizlabs/php_codesniffer', … … 185 185 ), 186 186 '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', 190 190 'type' => 'library', 191 191 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', … … 193 193 'dev_requirement' => false, 194 194 ), 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 ),204 195 'szepeviktor/phpstan-wordpress' => array( 205 'pretty_version' => 'v 1.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', 208 199 'type' => 'phpstan-extension', 209 200 'install_path' => __DIR__ . '/../szepeviktor/phpstan-wordpress', -
iloveimg/tags/2.2.6/vendor/firebase/php-jwt/CHANGELOG.md
r3165770 r3224285 1 1 # 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)) 2 10 3 11 ## [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 81 81 RequestFactoryInterface $httpFactory, 82 82 CacheItemPoolInterface $cache, 83 int $expiresAfter = null,83 ?int $expiresAfter = null, 84 84 bool $rateLimit = false, 85 string $defaultAlg = null85 ?string $defaultAlg = null 86 86 ) { 87 87 $this->jwksUri = $jwksUri; … … 181 181 if ($jwksResponse->getStatusCode() !== 200) { 182 182 throw new UnexpectedValueException( 183 sprintf('HTTP Error: %d %s for URI "%s"',183 \sprintf('HTTP Error: %d %s for URI "%s"', 184 184 $jwksResponse->getStatusCode(), 185 185 $jwksResponse->getReasonPhrase(), -
iloveimg/tags/2.2.6/vendor/firebase/php-jwt/src/JWK.php
r3165770 r3224285 53 53 * @uses parseKey 54 54 */ 55 public static function parseKeySet(array $jwks, string $defaultAlg = null): array55 public static function parseKeySet(array $jwks, ?string $defaultAlg = null): array 56 56 { 57 57 $keys = []; … … 94 94 * @uses createPemFromModulusAndExponent 95 95 */ 96 public static function parseKey(array $jwk, string $defaultAlg = null): ?Key96 public static function parseKey(array $jwk, ?string $defaultAlg = null): ?Key 97 97 { 98 98 if (empty($jwk)) { … … 213 213 ); 214 214 215 return sprintf(215 return \sprintf( 216 216 "-----BEGIN PUBLIC KEY-----\n%s\n-----END PUBLIC KEY-----\n", 217 217 wordwrap(base64_encode($pem), 64, "\n", true) -
iloveimg/tags/2.2.6/vendor/firebase/php-jwt/src/JWT.php
r3165770 r3224285 97 97 string $jwt, 98 98 $keyOrKeyArray, 99 stdClass &$headers = null99 ?stdClass &$headers = null 100 100 ): stdClass { 101 101 // Validate JWT … … 201 201 $key, 202 202 string $alg, 203 string $keyId = null,204 array $head = null203 ?string $keyId = null, 204 ?array $head = null 205 205 ): string { 206 206 $header = ['typ' => 'JWT']; 207 if (isset($head) && \is_array($head)) {207 if (isset($head)) { 208 208 $header = \array_merge($header, $head); 209 209 } … … 388 388 public static function jsonEncode(array $input): string 389 389 { 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); 396 391 if ($errno = \json_last_error()) { 397 392 self::handleJsonError($errno); -
iloveimg/trunk/.github/workflows/main.yml
r2995254 r3224285 11 11 - name: Checkout code 12 12 uses: actions/checkout@v2 13 - name: Install SVN 14 run: sudo apt-get update && sudo apt-get install -y subversion 13 15 - name: WordPress Plugin Deploy 14 16 id: deploy -
iloveimg/trunk/admin/Ilove_Img_Compress_Plugin.php
r3194405 r3224285 20 20 * @var string VERSION The current version of the plugin. 21 21 */ 22 const VERSION = '2.2. 5';22 const VERSION = '2.2.6'; 23 23 24 24 /** … … 39 39 */ 40 40 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' ); 41 50 42 51 /** … … 81 90 82 91 // 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' ) ); 84 94 85 95 // Display media information in the attachment submit box. … … 249 259 */ 250 260 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 251 267 update_post_meta( $attachment_id, 'iloveimg_status_compress', 0 ); // status no compressed 252 268 … … 365 381 */ 366 382 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 ) ) { 370 385 371 386 echo '<div class="misc-pub-section iloveimg-compress-images">'; … … 522 537 wp_die(); 523 538 } 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 } 524 562 } -
iloveimg/trunk/admin/Ilove_Img_Compress_Resources.php
r3194405 r3224285 274 274 $img_nonce = Ilove_Img_Compress_Plugin::get_img_nonce(); 275 275 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 ) ) : 277 277 $_sizes = get_post_meta( $column_id, 'iloveimg_compress', true ); 278 278 $status_compress = (int) get_post_meta( $column_id, 'iloveimg_status_compress', true ); … … 575 575 * @param string $option Name of the option to update. Expected to not be SQL-escaped. 576 576 * @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. 577 578 * @param bool|null $autoload Optional. Whether to load the option when WordPress starts up. Accepts a boolean, or null. 578 579 */ 579 public static function update_option( $option, $value, $ autoload = null ) {580 public static function update_option( $option, $value, $update_all_sites = false, $autoload = null ) { 580 581 581 582 if ( ! is_multisite() ) { … … 584 585 } 585 586 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 } 592 596 } 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 } 593 612 } -
iloveimg/trunk/composer.json
r3194405 r3224285 15 15 }, 16 16 "require-dev": { 17 "phpstan/phpstan": "^ 1.12",18 "szepeviktor/phpstan-wordpress": "^ 1.3",17 "phpstan/phpstan": "^2.1", 18 "szepeviktor/phpstan-wordpress": "^2.0", 19 19 "phpstan/extension-installer": "^1.4", 20 20 "wp-coding-standards/wpcs": "^3.0" -
iloveimg/trunk/ilove-img-compress.php
r3194405 r3224285 11 11 * Plugin URI: https://iloveapi.com/ 12 12 * 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. 513 * Version: 2.2.6 14 14 * Requires at least: 5.3 15 15 * Requires PHP: 7.4 … … 100 100 */ 101 101 function 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 ); 103 103 104 104 if ( ! file_exists( ILOVE_IMG_COMPRESS_BACKUP_FOLDER ) ) { … … 122 122 'iloveimg_field_backup' => 'on', 123 123 ) 124 ) 124 ), 125 true 125 126 ); 126 127 } else { … … 129 130 if ( is_serialized( $old_data ) ) { 130 131 $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 ); 132 133 } 133 134 } -
iloveimg/trunk/package.json
r3194405 r3224285 16 16 "gulp-if": "^3.0.0", 17 17 "gulp-rename": "^2.0.0", 18 "gulp-sass": "^ 5.1.0",18 "gulp-sass": "^6.0.0", 19 19 "gulp-sourcemaps": "^3.0.0", 20 20 "gulp-uglify": "^3.0.2", 21 21 "merge-stream": "^2.0.0", 22 "sass": "^1.8 1"22 "sass": "^1.83" 23 23 } 24 24 } -
iloveimg/trunk/phpstan.neon
r3088387 r3224285 8 8 analyseAndScan: 9 9 - vendor 10 - node_modules 10 - node_modules? 11 11 analyse: 12 12 - vendor/ilovepdf/iloveimg-php -
iloveimg/trunk/readme.txt
r3194405 r3224285 1 1 === Image Compressor & Optimizer - iLoveIMG === 2 2 Plugin Name: Image Compressor & Optimizer - iLoveIMG 3 Version: 2.2. 53 Version: 2.2.6 4 4 Author: iLovePDF 5 5 Author URI: https://www.iloveimg.com/ … … 8 8 Requires at least: 5.3 9 9 Tested up to: 6.7 10 Stable tag: 2.2. 510 Stable tag: 2.2.6 11 11 Requires PHP: 7.4 12 12 License: GPLv2 or later … … 94 94 95 95 == Changelog == 96 97 = 2.2.6 = 98 Improved 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 103 Fixed 104 * Thumbnails and other intermediate sizes coming from a PDF file were compressed. 96 105 97 106 = 2.2.5 = -
iloveimg/trunk/vendor/autoload.php
r3194405 r3224285 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 8eb75759ed79481defcfa275893544da::getLoader();25 return ComposerAutoloaderInitca264d8dde67813376c567ae25ecc7cd::getLoader(); -
iloveimg/trunk/vendor/composer/InstalledVersions.php
r2995894 r3224285 323 323 324 324 $installed = array(); 325 $copiedLocalDir = false; 325 326 326 327 if (self::$canGetVendors) { … … 331 332 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 333 $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; 336 339 } 337 340 } … … 351 354 } 352 355 353 if (self::$installed !== array() ) {356 if (self::$installed !== array() && !$copiedLocalDir) { 354 357 $installed[] = self::$installed; 355 358 } -
iloveimg/trunk/vendor/composer/autoload_real.php
r3194405 r3224285 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 8eb75759ed79481defcfa275893544da5 class ComposerAutoloaderInitca264d8dde67813376c567ae25ecc7cd 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 8eb75759ed79481defcfa275893544da', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInitca264d8dde67813376c567ae25ecc7cd', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 8eb75759ed79481defcfa275893544da', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInitca264d8dde67813376c567ae25ecc7cd', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 8eb75759ed79481defcfa275893544da::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInitca264d8dde67813376c567ae25ecc7cd::getInitializer($loader)); 33 33 34 34 $loader->register(true); 35 35 36 $filesToLoad = \Composer\Autoload\ComposerStaticInit 8eb75759ed79481defcfa275893544da::$files;36 $filesToLoad = \Composer\Autoload\ComposerStaticInitca264d8dde67813376c567ae25ecc7cd::$files; 37 37 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 38 38 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
iloveimg/trunk/vendor/composer/autoload_static.php
r3194405 r3224285 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 8eb75759ed79481defcfa275893544da7 class ComposerStaticInitca264d8dde67813376c567ae25ecc7cd 8 8 { 9 9 public static $files = array ( … … 79 79 { 80 80 return \Closure::bind(function () use ($loader) { 81 $loader->prefixLengthsPsr4 = ComposerStaticInit 8eb75759ed79481defcfa275893544da::$prefixLengthsPsr4;82 $loader->prefixDirsPsr4 = ComposerStaticInit 8eb75759ed79481defcfa275893544da::$prefixDirsPsr4;83 $loader->classMap = ComposerStaticInit 8eb75759ed79481defcfa275893544da::$classMap;81 $loader->prefixLengthsPsr4 = ComposerStaticInitca264d8dde67813376c567ae25ecc7cd::$prefixLengthsPsr4; 82 $loader->prefixDirsPsr4 = ComposerStaticInitca264d8dde67813376c567ae25ecc7cd::$prefixDirsPsr4; 83 $loader->classMap = ComposerStaticInitca264d8dde67813376c567ae25ecc7cd::$classMap; 84 84 85 85 }, null, ClassLoader::class); -
iloveimg/trunk/vendor/composer/installed.json
r3194405 r3224285 84 84 { 85 85 "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", 88 88 "source": { 89 89 "type": "git", 90 90 "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", 97 97 "shasum": "" 98 98 }, … … 112 112 "paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present" 113 113 }, 114 "time": "2024- 05-18T18:05:11+00:00",114 "time": "2024-11-24T11:22:49+00:00", 115 115 "type": "library", 116 116 "installation-source": "dist", … … 144 144 "support": { 145 145 "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" 147 147 }, 148 148 "install-path": "../firebase/php-jwt" … … 536 536 { 537 537 "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", 540 540 "source": { 541 541 "type": "git", 542 542 "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", 549 549 "shasum": "" 550 550 }, … … 555 555 "php-stubs/generator": "^0.8.3", 556 556 "phpdocumentor/reflection-docblock": "^5.4.1", 557 "phpstan/phpstan": "^1.1 0.49",557 "phpstan/phpstan": "^1.11", 558 558 "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", 560 560 "wp-coding-standards/wpcs": "3.1.0 as 2.3.0" 561 561 }, … … 565 565 "szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan" 566 566 }, 567 "time": "2024- 09-30T07:10:48+00:00",567 "time": "2024-11-24T03:57:09+00:00", 568 568 "type": "library", 569 569 "installation-source": "dist", … … 581 581 "support": { 582 582 "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" 584 584 }, 585 585 "install-path": "../php-stubs/wordpress-stubs" … … 810 810 { 811 811 "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", 814 814 "source": { 815 815 "type": "git", 816 816 "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" 827 827 }, 828 828 "conflict": { 829 829 "phpstan/phpstan-shim": "*" 830 830 }, 831 "time": "202 4-11-17T14:08:01+00:00",831 "time": "2025-01-05T16:43:48+00:00", 832 832 "bin": [ 833 833 "phpstan", … … 1087 1087 { 1088 1088 "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", 1091 1091 "source": { 1092 1092 "type": "git", 1093 1093 "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", 1094 "reference": "1 9473c30efe4f7b3cd42522d0b2e6e7f243c6f87"1095 }, 1096 "dist": { 1097 "type": "zip", 1098 "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/1 9473c30efe4f7b3cd42522d0b2e6e7f243c6f87",1099 "reference": "1 9473c30efe4f7b3cd42522d0b2e6e7f243c6f87",1094 "reference": "1368f4a58c3c52114b86b1abe8f4098869cb0079" 1095 }, 1096 "dist": { 1097 "type": "zip", 1098 "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/1368f4a58c3c52114b86b1abe8f4098869cb0079", 1099 "reference": "1368f4a58c3c52114b86b1abe8f4098869cb0079", 1100 1100 "shasum": "" 1101 1101 }, … … 1109 1109 "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4" 1110 1110 }, 1111 "time": "2024-1 1-16T12:02:36+00:00",1111 "time": "2024-12-11T16:04:26+00:00", 1112 1112 "bin": [ 1113 1113 "bin/phpcbf", … … 1170 1170 { 1171 1171 "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", 1174 1174 "source": { 1175 1175 "type": "git", 1176 1176 "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", 1183 1183 "shasum": "" 1184 1184 }, … … 1186 1186 "php": ">=8.1" 1187 1187 }, 1188 "time": "2024-0 4-18T09:32:20+00:00",1188 "time": "2024-09-25T14:20:29+00:00", 1189 1189 "type": "library", 1190 1190 "extra": { 1191 "thanks": { 1192 "url": "https://github.com/symfony/contracts", 1193 "name": "symfony/contracts" 1194 }, 1191 1195 "branch-alias": { 1192 1196 "dev-main": "3.5-dev" 1193 },1194 "thanks": {1195 "name": "symfony/contracts",1196 "url": "https://github.com/symfony/contracts"1197 1197 } 1198 1198 }, … … 1220 1220 "homepage": "https://symfony.com", 1221 1221 "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" 1223 1223 }, 1224 1224 "funding": [ … … 1239 1239 }, 1240 1240 { 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 {1320 1241 "name": "szepeviktor/phpstan-wordpress", 1321 "version": "v 1.3.5",1322 "version_normalized": " 1.3.5.0",1242 "version": "v2.0.1", 1243 "version_normalized": "2.0.1.0", 1323 1244 "source": { 1324 1245 "type": "git", 1325 1246 "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" 1339 1259 }, 1340 1260 "require-dev": { … … 1342 1262 "dealerdirect/phpcodesniffer-composer-installer": "^1.0", 1343 1263 "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", 1346 1266 "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1.0", 1347 1267 "wp-coding-standards/wpcs": "3.1.0 as 2.3.0" … … 1350 1270 "swissspidy/phpstan-no-private": "Detect usage of internal core functions, classes and methods" 1351 1271 }, 1352 "time": "2024- 06-28T22:27:19+00:00",1272 "time": "2024-12-01T02:13:05+00:00", 1353 1273 "type": "phpstan-extension", 1354 1274 "extra": { … … 1379 1299 "support": { 1380 1300 "issues": "https://github.com/szepeviktor/phpstan-wordpress/issues", 1381 "source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v 1.3.5"1301 "source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v2.0.1" 1382 1302 }, 1383 1303 "install-path": "../szepeviktor/phpstan-wordpress" … … 1462 1382 "phpstan/phpstan", 1463 1383 "squizlabs/php_codesniffer", 1464 "symfony/polyfill-php73",1465 1384 "szepeviktor/phpstan-wordpress", 1466 1385 "wp-coding-standards/wpcs" -
iloveimg/trunk/vendor/composer/installed.php
r3194405 r3224285 4 4 'pretty_version' => 'dev-develop', 5 5 'version' => 'dev-develop', 6 'reference' => ' 4466ccb47ee271d6417bb3a45c58f671961c4ffd',6 'reference' => 'ac9c7d802737fdae0c0e204e0e7aebc19fcd694b', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 21 21 ), 22 22 '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', 26 26 'type' => 'library', 27 27 'install_path' => __DIR__ . '/../firebase/php-jwt', … … 70 70 'pretty_version' => 'dev-develop', 71 71 'version' => 'dev-develop', 72 'reference' => ' 4466ccb47ee271d6417bb3a45c58f671961c4ffd',72 'reference' => 'ac9c7d802737fdae0c0e204e0e7aebc19fcd694b', 73 73 'type' => 'wordpress-plugin', 74 74 'install_path' => __DIR__ . '/../../', … … 77 77 ), 78 78 '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', 82 82 'type' => 'library', 83 83 'install_path' => __DIR__ . '/../php-stubs/wordpress-stubs', … … 113 113 ), 114 114 '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', 118 118 'type' => 'library', 119 119 'install_path' => __DIR__ . '/../phpstan/phpstan', … … 176 176 ), 177 177 'squizlabs/php_codesniffer' => array( 178 'pretty_version' => '3.11. 1',179 'version' => '3.11. 1.0',180 'reference' => '1 9473c30efe4f7b3cd42522d0b2e6e7f243c6f87',178 'pretty_version' => '3.11.2', 179 'version' => '3.11.2.0', 180 'reference' => '1368f4a58c3c52114b86b1abe8f4098869cb0079', 181 181 'type' => 'library', 182 182 'install_path' => __DIR__ . '/../squizlabs/php_codesniffer', … … 185 185 ), 186 186 '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', 190 190 'type' => 'library', 191 191 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', … … 193 193 'dev_requirement' => false, 194 194 ), 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 ),204 195 'szepeviktor/phpstan-wordpress' => array( 205 'pretty_version' => 'v 1.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', 208 199 'type' => 'phpstan-extension', 209 200 'install_path' => __DIR__ . '/../szepeviktor/phpstan-wordpress', -
iloveimg/trunk/vendor/firebase/php-jwt/CHANGELOG.md
r3165770 r3224285 1 1 # 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)) 2 10 3 11 ## [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 81 81 RequestFactoryInterface $httpFactory, 82 82 CacheItemPoolInterface $cache, 83 int $expiresAfter = null,83 ?int $expiresAfter = null, 84 84 bool $rateLimit = false, 85 string $defaultAlg = null85 ?string $defaultAlg = null 86 86 ) { 87 87 $this->jwksUri = $jwksUri; … … 181 181 if ($jwksResponse->getStatusCode() !== 200) { 182 182 throw new UnexpectedValueException( 183 sprintf('HTTP Error: %d %s for URI "%s"',183 \sprintf('HTTP Error: %d %s for URI "%s"', 184 184 $jwksResponse->getStatusCode(), 185 185 $jwksResponse->getReasonPhrase(), -
iloveimg/trunk/vendor/firebase/php-jwt/src/JWK.php
r3165770 r3224285 53 53 * @uses parseKey 54 54 */ 55 public static function parseKeySet(array $jwks, string $defaultAlg = null): array55 public static function parseKeySet(array $jwks, ?string $defaultAlg = null): array 56 56 { 57 57 $keys = []; … … 94 94 * @uses createPemFromModulusAndExponent 95 95 */ 96 public static function parseKey(array $jwk, string $defaultAlg = null): ?Key96 public static function parseKey(array $jwk, ?string $defaultAlg = null): ?Key 97 97 { 98 98 if (empty($jwk)) { … … 213 213 ); 214 214 215 return sprintf(215 return \sprintf( 216 216 "-----BEGIN PUBLIC KEY-----\n%s\n-----END PUBLIC KEY-----\n", 217 217 wordwrap(base64_encode($pem), 64, "\n", true) -
iloveimg/trunk/vendor/firebase/php-jwt/src/JWT.php
r3165770 r3224285 97 97 string $jwt, 98 98 $keyOrKeyArray, 99 stdClass &$headers = null99 ?stdClass &$headers = null 100 100 ): stdClass { 101 101 // Validate JWT … … 201 201 $key, 202 202 string $alg, 203 string $keyId = null,204 array $head = null203 ?string $keyId = null, 204 ?array $head = null 205 205 ): string { 206 206 $header = ['typ' => 'JWT']; 207 if (isset($head) && \is_array($head)) {207 if (isset($head)) { 208 208 $header = \array_merge($header, $head); 209 209 } … … 388 388 public static function jsonEncode(array $input): string 389 389 { 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); 396 391 if ($errno = \json_last_error()) { 397 392 self::handleJsonError($errno);
Note: See TracChangeset
for help on using the changeset viewer.