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
Hmmm, from D7 ancient tomes: from https://drupal.stackexchange.com/questions/7056/limit-which-roles-can-view-a-node-basing-on-its-content-type yet https://docs.backdropcms.org/api/...
node access
I also note on this screen: "Furthermore note that content which is not published is treated in a different way by Backdrop: it can be viewed only by its author or users with the...
node access
I am seeing via dpm debug that the nodes that are authored by someone else are not even being interrogated at the view level; they are simply avoiding the hook_node_access call. Yet the...
node access