Customize: Consistently use `input_attrs` as control param key in JS instead of `inputAttrs`.

See #30738, #41897.


git-svn-id: https://develop.svn.wordpress.org/trunk@41936 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Weston Ruter 2017-10-19 03:24:20 +00:00
parent 1c04006909
commit aac833887e
2 changed files with 2 additions and 2 deletions

View File

@ -6900,7 +6900,7 @@
type: 'button',
section: section.id,
priority: 30,
inputAttrs: {
input_attrs: {
'class': 'button-link button-link-delete',
value: api.l10n.discardChanges
}

View File

@ -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 ) { #>