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
Thank you for your answer. What I want to do is display usernames or user images in a menu, similar to many community websites. The basic menu that Backdrop currently provides is a "...
How can I display the username or user profile picture in the menu?
Just go to the menu where you want to add your link. Add your link and in the path search for "user". It's done. No need to use a token. Or perhaps this ? menu_attributes
How can I display the username or user profile picture in the menu?
Please can you provide more information about the use case for this and also a screenshot or mockup of what you are trying to achieve. There is a request here (https://github.com/backdrop-...
How can I display the username or user profile picture in the menu?