Fix interpolation syntax introduced in #47311. (#48337)

This commit is contained in:
Barry Hughes 2024-06-12 01:07:24 -07:00 committed by GitHub
parent 54854f16cf
commit f9afd4d7bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,5 @@
Significance: patch
Type: tweak
Comment: This is a correction for currently unreleased change https://github.com/woocommerce/woocommerce/pull/47311.

View File

@ -201,13 +201,13 @@ class CLIRunner {
if ( ! $this->data_regenerator->has_scheduled_action_for_regeneration_step() ) {
$this->log( 'However, there are %9NO%n actions scheduled to run the regeneration steps (a %9wp cli palt regenerate%n command was aborted?).' );
}
$this->log( "The last product id that will be processed is %Y${max_product_id_to_process}%n." );
$this->log( "The last product id that will be processed is %Y{$max_product_id_to_process}%n." );
$this->log( "\nRun %9wp cli palt abort_regeneration%n to abort the regeneration process," );
$this->log( "then you'll be able to run %9wp cli palt resume_regeneration%n to resume the regeneration process," );
} elseif ( $this->lookup_data_store->regeneration_was_aborted() ) {
$max_product_id_to_process = get_option( 'woocommerce_attribute_lookup_last_product_id_to_process', '???' );
WP_CLI::log( '' );
$this->warning( "Full regeneration of the table has been %Raborted.%n\nThe last product id that will be processed is %Y${max_product_id_to_process}%n." );
$this->warning( "Full regeneration of the table has been %Raborted.%n\nThe last product id that will be processed is %Y{$max_product_id_to_process}%n." );
$this->log( "\nRun %9wp cli palt resume_regeneration%n to resume the regeneration process." );
}
}