mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-03 08:37:53 +08:00
Change the script localize name
This commit is contained in:
parent
0763e73cdb
commit
6e5af8f0ab
2 changed files with 2 additions and 2 deletions
|
@ -192,7 +192,7 @@ document.addEventListener(
|
|||
if(selectedLocations.length === 0) {
|
||||
hideElements(groupToHideOnChecked.concat(stylingPerElementWrapperSelector));
|
||||
if (emptySmartButtonLocationMessage.length === 0) {
|
||||
jQuery(PayPalCommerceGatewaySettings.empty_smart_button_location_message).insertAfter(jQuery(smartButtonLocationsSelector).find('.description'));
|
||||
jQuery(PayPalCommerceSettings.empty_smart_button_location_message).insertAfter(jQuery(smartButtonLocationsSelector).find('.description'));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -112,7 +112,7 @@ class OnboardingAssets {
|
|||
);
|
||||
wp_localize_script(
|
||||
'ppcp-settings',
|
||||
'PayPalCommerceGatewaySettings',
|
||||
'PayPalCommerceSettings',
|
||||
array(
|
||||
'empty_smart_button_location_message' => sprintf(
|
||||
'<p class="description ppcp-empty-smart-button-location">%1$s</p>',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue