Make WordPress Core

Ticket #50508: 50508.diff

File 50508.diff, 546 bytes (added by dlh, 6 years ago)
  • src/wp-includes/class-wp-customize-widgets.php

    diff --git src/wp-includes/class-wp-customize-widgets.php src/wp-includes/class-wp-customize-widgets.php
    index 0aa75168a4..9779f9d65b 100644
    final class WP_Customize_Widgets {  
    12171217         * @return bool Whether the widget is rendered.
    12181218         */
    12191219        public function is_widget_rendered( $widget_id ) {
    1220                 return in_array( $widget_id, $this->rendered_widgets, true );
     1220                return ! empty( $this->rendered_widgets[ $widget_id ] );
    12211221        }
    12221222
    12231223        /**