mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Refactor the field name
This commit is contained in:
parent
004f87adb4
commit
554ae57cb1
2 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ document.addEventListener(
|
|||
const clearDbConfig = config.clearDb;
|
||||
|
||||
jQuery(document).on('click', clearDbConfig.button, function () {
|
||||
const isConfirmed = confirm(clearDbConfig.ConfirmationMessage);
|
||||
const isConfirmed = confirm(clearDbConfig.confirmationMessage);
|
||||
if (!isConfirmed) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@ return array(
|
|||
'nonce' => wp_create_nonce( $container->get( 'uninstall.clear-db-endpoint' ) ),
|
||||
'button' => '.ppcp-clear_db_now',
|
||||
'messageSelector' => '.clear-db-info-message',
|
||||
'ConfirmationMessage' => __( 'Are you sure? the operation will remove all plugin data.', 'woocommerce-paypal-payments' ),
|
||||
'confirmationMessage' => __( 'Are you sure? the operation will remove all plugin data.', 'woocommerce-paypal-payments' ),
|
||||
'successMessage' => sprintf(
|
||||
'<div class="updated clear-db-info-message"><p><strong>%1$s</strong></p></div>',
|
||||
esc_html__( 'The plugin data is successfully cleared.', 'woocommerce-paypal-payments' )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue