Description of the need
Since 1.27.0 added the 'wrapper_attributes' parameter in the $variable array in core/includes/theme.inc > function theme_item_list($variables). We should check the existence of this parameter if we want backward compatibility for the contrib modules.
Proposed solution
Now:
function theme_item_list($variables) {
...
$wrapper_attributes = $variables['wrapper_attributes'];
Fixed:
$wrapper_attributes = isset($variables['wrapper_attributes']) ? $variables['wrapper_attributes'] : array();
Additional information
Similar situation with the 'empty' parameter since 1.21.0.
$empty= isset($variables['empty']) ? $variables['empty'] : '';
GitHub Issue #:
6398
Recent comments
Hi Jim..., I did something similar for a new site ive created parallax-news.com where the poster can add an image and a blue background with text shadows to make text more readable...
How to access node fields in block template files
Thanks people. I went ahead and created a View block using the BG image formatter. I might still end up messing with template files because I’ll probably need to overlay a graduated...
How to access node fields in block template files
Hi Coffee70, How can I determine what is causing this warning and what exactly needs to be done to resolve it, other than uninstalling Honeypot completely? It doesn't...
Warnings after installing Simplenews 1.x-1.2.3