Plugin Directory

Changeset 2539128


Ignore:
Timestamp:
05/28/2021 03:56:37 PM (5 years ago)
Author:
megaoptim
Message:

Version 1.4.13

Location:
megaoptim-image-optimizer/trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • megaoptim-image-optimizer/trunk/includes/classes/MGO_CLI.php

    r2539116 r2539128  
    257257                    } else if ( $e instanceof MGO_Attachment_Locked_Exception ) {
    258258                        \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;
    259262                    } else {
    260263                        \WP_CLI::warning( sprintf( __( 'Attachment %s not optimized. Reason: %s', 'megaoptim-image-optimizer' ), $image['ID'], $e->getMessage() ) );
    261                         break;
    262264                    }
    263265                }
  • megaoptim-image-optimizer/trunk/includes/classes/MGO_ResultBag.php

    r2539116 r2539128  
    137137            $messages = $error->getErrors();
    138138            if ( count( $messages ) > 0 ) {
    139                 throw new MGO_Exception( $messages[0], $error->getErrorCode() );
     139                throw new MGO_API_Response_Exception( $messages[0], $error->getErrorCode() );
    140140            }
    141141        }
  • megaoptim-image-optimizer/trunk/includes/loader.php

    r2432752 r2539128  
    6868    'classes/Exceptions/MGO_Attachment_Already_Optimized_Exception.php',
    6969    'classes/Exceptions/MGO_Attachment_Locked_Exception.php',
     70    'classes/Exceptions/MGO_API_Response_Exception.php',
    7071    'classes/MGO_File.php',
    7172    'classes/MGO_Stats.php',
  • megaoptim-image-optimizer/trunk/megaoptim.php

    r2539116 r2539128  
    66Author: MegaOptim
    77Author URI: https://megaoptim.com
    8 Version: 1.4.12
     8Version: 1.4.13
    99Text Domain: megaoptim-image-optimizer
    1010Domain Path: /languages
     
    1515}
    1616
    17 define( 'WP_MEGAOPTIM_VER', '1.4.12' );
     17define( 'WP_MEGAOPTIM_VER', '1.4.13' );
    1818define( 'WP_MEGAOPTIM_PATH', plugin_dir_path( __FILE__ ) );
    1919define( 'WP_MEGAOPTIM_URL', plugin_dir_url( __FILE__ ) );
  • megaoptim-image-optimizer/trunk/readme.txt

    r2539116 r2539128  
    55Tested up to: 5.7
    66Requires PHP: 5.3
    7 Stable tag: 1.4.12
     7Stable tag: 1.4.13
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    138138== Changelog ==
    139139
     140= 1.4.13 =
     141- Terminate the WP CLI Bulk process only if API problem is found e.g. Insufficuent tokens.
     142
    140143= 1.4.12 =
    141144- Performance optimizations in /wp-admin
Note: See TracChangeset for help on using the changeset viewer.