| @@ -47,8 +47,11 @@ | ||
| 47 | 47 | return \WP_CLI::error( __( 'You need to have the offload_media option enabled in order to use this command', 'optimole-wp' ) ); |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | Optml_Media_Offload::clear_offload_errors_meta(); |
| 51 | + if ( $action === 'rollback' ) { | |
| 52 | + Optml_Media_Offload::clear_rollback_errors_meta(); | |
| 53 | + } | |
| 51 | 54 | WP_CLI::line( $strings[ $action ]['info'] ); |
| 52 | 55 | $number_of_images_for = 'offload_images'; |
| 53 | 56 | if ( $action === 'rollback' ) { |
| 54 | 57 | $number_of_images_for = 'rollback_images'; |