diff --git a/src/wp-admin/js/customize-widgets.js b/src/wp-admin/js/customize-widgets.js index fb28d30d51..d649b6b021 100644 --- a/src/wp-admin/js/customize-widgets.js +++ b/src/wp-admin/js/customize-widgets.js @@ -1387,24 +1387,6 @@ registeredSidebar.set( 'is_rendered', active ); }); registeredSidebar.set( 'is_rendered', section.active() ); - }, - - /** - * Override Section.isContextuallyActive() to skip considering - * SidebarControl as opposed to a WidgetControl. - * - * @returns {boolean} - */ - isContextuallyActive: function () { - var section, activeCount; - section = this; - activeCount = 0; - _( section.controls() ).each( function ( control ) { - if ( control.active() && ! control.extended( api.Widgets.SidebarControl ) ) { - activeCount += 1; - } - }); - return ( activeCount !== 0 ); } });