Widgets: Remove create_function() from the customizer class.
props westonruter. fixes #27805. Built from https://develop.svn.wordpress.org/trunk@28143 git-svn-id: http://core.svn.wordpress.org/trunk@27974 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -722,7 +722,7 @@
|
||||
}, 250 );
|
||||
|
||||
// Trigger widget form update when hitting Enter within an input
|
||||
this.container.find( '.widget-content' ).on( 'keydown', 'input', function( e ) {
|
||||
$widgetContent.on( 'keydown', 'input', function( e ) {
|
||||
if ( 13 === e.which ) { // Enter
|
||||
e.preventDefault();
|
||||
self.updateWidget( { ignoreActiveElement: true } );
|
||||
|
||||
2
wp-admin/js/customize-widgets.min.js
vendored
2
wp-admin/js/customize-widgets.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user