WordPress.org

Make WordPress Core

Ticket #7222: 7222.r8534.diff

File 7222.r8534.diff, 365 bytes (added by santosj, 10 years ago)

Adds type casting to the variable to prevent error. Based off of r8534

  • widgets.php

     
    5757                'after_title' => "</h2>\n",
    5858        );
    5959
    60         $sidebar = array_merge($defaults, $args);
     60        $sidebar = array_merge($defaults, (array) $args);
    6161
    6262        $wp_registered_sidebars[$sidebar['id']] = $sidebar;
    6363