WordPress.org

Make WordPress Core

Ticket #14816: 14816-widgets.patch

File 14816-widgets.patch, 509 bytes (added by hakre, 5 years ago)

Shortcut.

  • wp-includes/widgets.php

     
    854854        } 
    855855 
    856856        $sidebars_widgets = wp_get_sidebars_widgets(); 
     857        if ( !count( $sidebars_widgets ) ) return false; 
    857858 
    858859        if ( empty($wp_registered_sidebars[$index]) || !array_key_exists($index, $sidebars_widgets) || !is_array($sidebars_widgets[$index]) || empty($sidebars_widgets[$index]) ) 
    859860                return false;