WordPress.org

Make WordPress Core

Ticket #9770: 9770.diff

File 9770.diff, 512 bytes (added by Denis-de-Bernardy, 6 years ago)

better patch

  • wp-includes/widgets.php

     
    760760                } 
    761761        } 
    762762 
    763         $sidebars_widgets = wp_get_sidebars_widgets(); 
     763        $sidebars_widgets = wp_get_sidebars_widgets(false); 
    764764 
    765765        if ( empty($wp_registered_sidebars[$index]) || !array_key_exists($index, $sidebars_widgets) || !is_array($sidebars_widgets[$index]) || empty($sidebars_widgets[$index]) ) 
    766766                return false;