Changeset 2539128
- Timestamp:
- 05/28/2021 03:56:37 PM (5 years ago)
- Location:
- megaoptim-image-optimizer/trunk
- Files:
-
- 1 added
- 5 edited
-
includes/classes/Exceptions/MGO_API_Response_Exception.php (added)
-
includes/classes/MGO_CLI.php (modified) (1 diff)
-
includes/classes/MGO_ResultBag.php (modified) (1 diff)
-
includes/loader.php (modified) (1 diff)
-
megaoptim.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
megaoptim-image-optimizer/trunk/includes/classes/MGO_CLI.php
r2539116 r2539128 257 257 } else if ( $e instanceof MGO_Attachment_Locked_Exception ) { 258 258 \WP_CLI::warning( sprintf( __( 'Attachment %s not optimized. Reason: %s', 'megaoptim-image-optimizer' ), $image['ID'], $e->getMessage() ) ); 259 } else if ( $e instanceof MGO_API_Response_Exception ) { 260 \WP_CLI::warning( sprintf( __( 'Attachment %s not optimized. Reason: %s', 'megaoptim-image-optimizer' ), $image['ID'], $e->getMessage() ) ); 261 break; 259 262 } else { 260 263 \WP_CLI::warning( sprintf( __( 'Attachment %s not optimized. Reason: %s', 'megaoptim-image-optimizer' ), $image['ID'], $e->getMessage() ) ); 261 break;262 264 } 263 265 } -
megaoptim-image-optimizer/trunk/includes/classes/MGO_ResultBag.php
r2539116 r2539128 137 137 $messages = $error->getErrors(); 138 138 if ( count( $messages ) > 0 ) { 139 throw new MGO_ Exception( $messages[0], $error->getErrorCode() );139 throw new MGO_API_Response_Exception( $messages[0], $error->getErrorCode() ); 140 140 } 141 141 } -
megaoptim-image-optimizer/trunk/includes/loader.php
r2432752 r2539128 68 68 'classes/Exceptions/MGO_Attachment_Already_Optimized_Exception.php', 69 69 'classes/Exceptions/MGO_Attachment_Locked_Exception.php', 70 'classes/Exceptions/MGO_API_Response_Exception.php', 70 71 'classes/MGO_File.php', 71 72 'classes/MGO_Stats.php', -
megaoptim-image-optimizer/trunk/megaoptim.php
r2539116 r2539128 6 6 Author: MegaOptim 7 7 Author URI: https://megaoptim.com 8 Version: 1.4.1 28 Version: 1.4.13 9 9 Text Domain: megaoptim-image-optimizer 10 10 Domain Path: /languages … … 15 15 } 16 16 17 define( 'WP_MEGAOPTIM_VER', '1.4.1 2' );17 define( 'WP_MEGAOPTIM_VER', '1.4.13' ); 18 18 define( 'WP_MEGAOPTIM_PATH', plugin_dir_path( __FILE__ ) ); 19 19 define( 'WP_MEGAOPTIM_URL', plugin_dir_url( __FILE__ ) ); -
megaoptim-image-optimizer/trunk/readme.txt
r2539116 r2539128 5 5 Tested up to: 5.7 6 6 Requires PHP: 5.3 7 Stable tag: 1.4.1 27 Stable tag: 1.4.13 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 138 138 == Changelog == 139 139 140 = 1.4.13 = 141 - Terminate the WP CLI Bulk process only if API problem is found e.g. Insufficuent tokens. 142 140 143 = 1.4.12 = 141 144 - Performance optimizations in /wp-admin
Note: See TracChangeset
for help on using the changeset viewer.