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
Update. Sorry for the late update, got side-tracked on another project. Decided to do my site updates today and downloaded the 1.30.0 version. I had NO issues (i.e. virus warnings) with the...
Virus warning on 1.29.3 download
Alejandro - Thanks for the additional information. Backdrop is very smart, but I'm not!
Image Library - way to change file name?
@yorkshirepudding Thanks for the explanation - my code writing skills are so poor I could not see anything in the code that pointed me to that answer.
Image Library - way to change file name?