From aac833887e5a6cd6ddd05bb6c3c137ae007d498e Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Thu, 19 Oct 2017 03:24:20 +0000 Subject: [PATCH] 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 --- src/wp-admin/js/customize-controls.js | 2 +- src/wp-includes/class-wp-customize-manager.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ) { #>