Improve the "Orders out of sync" warning message in COT settings

This commit is contained in:
Nestor Soriano 2022-03-11 16:56:31 +01:00
parent 65b716346d
commit 746d6a99b1
No known key found for this signature in database
GPG Key ID: 08110F3518C12CAD
2 changed files with 4 additions and 4 deletions

View File

@ -338,11 +338,11 @@ class CustomOrdersTableController {
}
if ( $this->data_synchronizer->pending_data_sync_is_in_progress() ) {
$text .= __( '<br/>Syncrhonization for these orders is currently in progress.', 'woocommerce' );
$text .= __( "<br/>Synchronization for these orders is currently in progress.<br/>The authoritative table can't be changed until sync completes.", 'woocommerce' );
} else {
$text .= __( "<br/>The authoritative table can't be changed until these orders are synchronized.", 'woocommerce' );
}
$text .= __( "<br/>The authoritative table can't be changed until sync completes.", 'woocommerce' );
$settings[] = array(
'type' => 'info',
'id' => 'cot-out-of-sync-warning',

View File

@ -283,7 +283,7 @@ WHERE orders.date_updated_gmt != posts.post_modified_gmt";
$this->cleanup_synchronization_state();
/**
* Hook to signal that the orders tables synchronization process has finised (nothing left to synchronize).
* Hook to signal that the orders tables synchronization process has finished (nothing left to synchronize).
*/
do_action( self::PENDING_SYNCHRONIZATION_FINISHED_ACTION );
} else {