diff --git a/src/wp-admin/js/customize-controls.js b/src/wp-admin/js/customize-controls.js index 541a46731c..7b275b4d60 100644 --- a/src/wp-admin/js/customize-controls.js +++ b/src/wp-admin/js/customize-controls.js @@ -6900,7 +6900,7 @@ type: 'button', section: section.id, priority: 30, - inputAttrs: { + input_attrs: { 'class': 'button-link button-link-delete', value: api.l10n.discardChanges } diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php index 6cb64ea26b..c1eb1f31dd 100644 --- a/src/wp-includes/class-wp-customize-manager.php +++ b/src/wp-includes/class-wp-customize-manager.php @@ -4003,7 +4003,7 @@ final class WP_Customize_Manager { if ( data.description ) { inputAttrs['aria-describedby'] = descriptionId; } - _.extend( inputAttrs, data.inputAttrs ); + _.extend( inputAttrs, data.input_attrs ); #> <# if ( 'button' === data.type ) { #>