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, I would solve this problem by installing the Term Body Class module and then editing the user profile by adding a taxonomy type field with a dictionary setting to be used as a Term Body...
Add Body Class to user page
Some tasks that I belief, deserve a bit attention in the dev meeting: PHP 8.4 support (#6777) I'd like to get it into core soon, so we have enough time to find possible side effects...
Mar 13th 2025 Weekly Meetings
AFAIK there is no option to customise the sorting of book pages:
Book child page ordering by nodeid