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
This commit is contained in:
ryan 2008-08-04 20:34:45 +00:00
parent b8dc4a3377
commit 7f0c014f36
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ function register_sidebar($args = array()) {
'after_title' => "</h2>\n",
);
$sidebar = array_merge($defaults, $args);
$sidebar = array_merge($defaults, (array) $args);
$wp_registered_sidebars[$sidebar['id']] = $sidebar;