Plugin Updates

This commit is contained in:
Tony Volpe
2024-03-19 15:33:31 +00:00
parent ff5b56dc44
commit 3a70a6e4bf
317 changed files with 8178 additions and 2933 deletions

View File

@@ -6,9 +6,9 @@ namespace Imagify\CLI;
use Imagify\Bulk\Bulk;
/**
* Command class for the missing WebP generation
* Command class for the missing Nextgen generation
*/
class GenerateMissingWebpCommand extends AbstractCommand {
class GenerateMissingNextgenCommand extends AbstractCommand {
/**
* Executes the command.
*
@@ -16,23 +16,23 @@ class GenerateMissingWebpCommand extends AbstractCommand {
* @param array $options Optional arguments.
*/
public function __invoke( $arguments, $options ) {
Bulk::get_instance()->run_generate_webp( $arguments );
Bulk::get_instance()->run_generate_nextgen( $arguments );
\WP_CLI::log( 'Imagify missing WebP generation triggered.' );
\WP_CLI::log( 'Imagify missing next-gen images generation triggered.' );
}
/**
* {@inheritdoc}
*/
protected function get_command_name(): string {
return 'generate-missing-webp';
return 'generate-missing-nextgen';
}
/**
* {@inheritdoc}
*/
public function get_description(): string {
return 'Run the generation of the missing WebP versions';
return 'Run the generation of the missing next-gen images versions';
}
/**
@@ -43,7 +43,7 @@ class GenerateMissingWebpCommand extends AbstractCommand {
[
'type' => 'positional',
'name' => 'contexts',
'description' => 'The context(s) to run the missing WebP generation for. Possible values are wp and custom-folders.',
'description' => 'The context(s) to run the missing next-gen images generation for. Possible values are wp and custom-folders.',
'optional' => false,
'repeating' => true,
],