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:
parent
b8dc4a3377
commit
7f0c014f36
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue