Cast to array to avoid warning. Props santosj. fixes #7222 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@8538 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-08-04 20:34:45 +00:00
parent 2b63884467
commit 6cf0ede185
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;