Make WordPress Core

Ticket #31889: 31889.diff

File 31889.diff, 711 bytes (added by westonruter, 8 years ago)

https://github.com/xwp/wordpress-develop/pull/84

  • src/wp-admin/js/customize-controls.js

    diff --git src/wp-admin/js/customize-controls.js src/wp-admin/js/customize-controls.js
    index 4f04de4..f8a64dc 100644
     
    585585                },
    586586
    587587                /**
     588                 * Override Section.isContextuallyActive method.
     589                 *
     590                 * Ignore the active states' of the contained theme controls, and just
     591                 * use the section's own active state instead. This ensures empty search
     592                 * results for themes to cause the section to become inactive.
     593                 *
     594                 * @since 4.2.0
     595                 *
     596                 * @returns {Boolean}
     597                 */
     598                isContextuallyActive: function () {
     599                        return this.active();
     600                },
     601
     602                /**
    588603                 * @since 4.2.0
    589604                 */
    590605                attachEvents: function () {