From 7f0c014f36f77fffdae1d0a28d7f4d985b21fe23 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 4 Aug 2008 20:34:45 +0000 Subject: [PATCH] Cast to array to avoid warning. Props santosj. fixes #7222 for trunk git-svn-id: http://svn.automattic.com/wordpress/trunk@8538 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/widgets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/widgets.php b/wp-includes/widgets.php index 6d1c5d499..f1fafab43 100644 --- a/wp-includes/widgets.php +++ b/wp-includes/widgets.php @@ -57,7 +57,7 @@ function register_sidebar($args = array()) { 'after_title' => "\n", ); - $sidebar = array_merge($defaults, $args); + $sidebar = array_merge($defaults, (array) $args); $wp_registered_sidebars[$sidebar['id']] = $sidebar;