Problem/Motivation
If there are no social media links in the theme settings, then the following warning is on every page load.
Warning: Undefined array key "x" in uswds_preprocess_page() (line 100 of drupal/themes/contrib/uswds/preprocess/layout/page.preprocess.inc)
Steps to reproduce
In theme settings have all social media link blank.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | uswds-3452755.patch | 368 bytes | sgoodwin |
Issue fork uswds-3452755
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
sgoodwin commentedthe patch file adds the footer variable 'x' to the list of footer variables in the page.preprocess.inc file.
After this update the warning goes away.
Comment #3
sgoodwin commentedComment #4
jrglasgow commentedthis is already fixed in the 3.2.x version