mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Fix some of the notices visible with WP_DEBUG enabled.
git-svn-id: https://develop.svn.wordpress.org/trunk@6436 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -203,7 +203,7 @@ function dynamic_sidebar($index = 1) {
|
||||
|
||||
$sidebars_widgets = wp_get_sidebars_widgets();
|
||||
|
||||
if ( empty($wp_registered_sidebars[$index]) || !is_array($sidebars_widgets[$index]) || empty($sidebars_widgets[$index]) )
|
||||
if ( empty($wp_registered_sidebars[$index]) || !array_key_exists($index, $sidebars_widgets) || !is_array($sidebars_widgets[$index]) || empty($sidebars_widgets[$index]) )
|
||||
return false;
|
||||
|
||||
$sidebar = $wp_registered_sidebars[$index];
|
||||
|
||||
Reference in New Issue
Block a user