Changeset 31570
- Timestamp:
- 02/27/2015 10:34:42 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/customize-widgets.js
r31471 r31570 1710 1710 1711 1711 /** 1712 * Get the widget_form Customize controls associated with the current sidebar. 1713 * 1714 * @since 3.9 1712 1715 * @return {wp.customize.controlConstructor.widget_form[]} 1713 1716 */ 1714 1717 getWidgetFormControls: function() { 1715 var formControls ;1716 1717 formControls = _( this.setting() ).map( function( widgetId ) {1718 var formControls = []; 1719 1720 _( this.setting() ).each( function( widgetId ) { 1718 1721 var settingId = widgetIdToSettingId( widgetId ), 1719 1722 formControl = api.control( settingId ); 1720 1721 if ( ! formControl ) { 1722 return; 1723 } 1724 1725 return formControl; 1723 if ( formControl ) { 1724 formControls.push( formControl ); 1725 } 1726 1726 } ); 1727 1727
Note: See TracChangeset
for help on using the changeset viewer.