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:
parent
2b63884467
commit
6cf0ede185
@ -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
Block a user