Changeset 2969430
- Timestamp:
- 09/20/2023 07:46:58 PM (11 months ago)
- Location:
- s3-image-optimizer/trunk
- Files:
-
- 218 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
s3-image-optimizer/trunk/.travis.yml
r2929806 r2969430 15 15 16 16 php: 17 - 7. 218 - 7.417 - 7. 18 - 19 19 20 20 env: … … 25 25 - phpenv config-rm xdebug.ini 26 26 - composer global config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true 27 - composer global require phpcompatibility/php-compatibility:"dev-develop as 9.99.99"28 27 - composer global require wp-coding-standards/wpcs phpcompatibility/phpcompatibility-wp 29 - composer global require dealerdirect/phpcodesniffer-composer-installer30 28 31 29 script: -
s3-image-optimizer/trunk/classes/class-amazon-web-services.php
r2929806 r2969430 56 56 * @return bool 57 57 */ 58 function are_access_keys_set() {58 function are_access_keys_set() { 59 59 return $this->get_access_key_id() && $this->get_secret_access_key(); 60 60 } … … 168 168 * @throws \Exception AWS configuration/connection error. 169 169 */ 170 function get_client() {170 function get_client() { 171 171 if ( $this->needs_access_keys() ) { 172 throw new \Exception( __( 'You must first set your AWS access keys to use S3 Image Optimizer.', 's3-image-optimizer' ) );172 throw new \Exception( __( 'You must first set your AWS access keys to use S3 Image Optimizer.', 's3-image-optimizer' ) ); 173 173 } 174 174 -
s3-image-optimizer/trunk/classes/class-s3io-cli.php
r2929806 r2969430 45 45 * @param array $assoc_args An array of named arguments provided via WP-CLI. 46 46 */ 47 function optimize( $args, $assoc_args ) {47 function optimize( $args, $assoc_args ) { 48 48 49 49 // because NextGEN hasn't flushed it's buffers... … … 115 115 while ( $image_count > 0 ) { 116 116 s3io_bulk_loop( true, $verbose ); 117 $image_count--;118 $images_finished++;117 ; 118 ; 119 119 WP_CLI::line( __( 'Optimized:', 's3-image-optimizer' ) . " $images_finished / $image_total" ); 120 120 sleep( $delay ); … … 127 127 while ( $image_count > 0 ) { 128 128 s3io_bulk_loop( true, $verbose ); 129 $image_count--;130 $images_finished++;129 ; 130 ; 131 131 WP_CLI::line( __( 'Optimized:', 's3-image-optimizer' ) . " $images_finished / $image_total" ); 132 132 } -
s3-image-optimizer/trunk/phpcs.ruleset.xml
r2550127 r2969430 4 4 <!-- Only sniff PHP files --> 5 5 <arg name="extensions" value="php"/> 6 7 <arg value="s"/>8 6 9 7 <exclude-pattern>/vendor/*</exclude-pattern> … … 35 33 </rule> 36 34 35 37 36 <rule ref="PHPCompatibilityWP"> 38 37 <severity>10</severity> -
s3-image-optimizer/trunk/readme.txt
r2929806 r2969430 2 2 Contributors: nosilver4u 3 3 Tags: amazon, s3, image, optimize, optimization, photo, picture, seo, compression, wp-cli 4 Requires at least: 6. 05 Tested up to: 6. 26 Requires PHP: 7. 24 Requires at least: 6. 5 Tested up to: 6. 6 Requires PHP: 7. 7 7 Stable tag: 2.5.0 8 8 License: GPLv3 … … 15 15 16 16 S3 IO features a web-based bulk optimization process, and a WP-CLI interface for massive buckets. S3 IO works with any S3-compatible storage service including Linode, Backblaze B2 and Digital Ocean Spaces. 17 18 17 19 18 20 == Installation == … … 61 63 == Changelog == 62 64 65 66 67 63 68 = 2.5.0 = 64 69 * added: compatibility with EWWW Image Optimizer 7+ and better future-proofing to detect compatibility errors -
s3-image-optimizer/trunk/s3-image-optimizer.php
r2929806 r2969430 14 14 Version: 2.5.0 15 15 Requires at least: 6.0 16 Requires PHP: 7. 216 Requires PHP: 7. 17 17 Author URI: https://ewww.io/ 18 18 License: GPLv3 … … 33 33 add_filter( 'aws_get_client_args', 's3io_dospaces' ); 34 34 35 require_once ( plugin_dir_path( __FILE__ ) . 'vendor/Aws3/aws-autoloader.php' );36 require_once ( plugin_dir_path( __FILE__ ) . 'classes/class-amazon-web-services.php' );35 require_once; 36 require_once; 37 37 if ( defined( 'WP_CLI' ) && WP_CLI ) { 38 require_once ( plugin_dir_path( __FILE__ ) . 'classes/class-s3io-cli.php' );38 require_once; 39 39 } 40 40 … … 116 116 117 117 // Include the upgrade library to initialize a table. 118 require_once ( ABSPATH . 'wp-admin/includes/upgrade.php' );118 require_once; 119 119 dbDelta( $sql ); 120 120 … … 769 769 foreach ( $results as $result ) { 770 770 foreach ( $result['Contents'] as $object ) { 771 $scan_count++;771 ; 772 772 $skip_optimized = false; 773 773 $path = $object['Key']; … … 794 794 } 795 795 s3io_debug_message( "queuing $path in $bucket" ); 796 $image_count++;796 ; 797 797 } 798 798 if ( $scan_count >= 4000 && count( $images ) ) {
Note: See TracChangeset
for help on using the changeset viewer.