creativecommons / creativecommons/vocabulary-theme

Invalid argument supplied for foreach() in page_home.php

Open
#194 1 comment 0 reactions 1 assignee Claimed by @possumbilities View on GitHub
💻 aspect: code 🚦 status: awaiting triage 🛠 goal: fix 🟨 priority: medium
Dominant language
PHP
Stars
6
Forks
7
Avg merge
1d 8m
Merged PRs (30d)
6

Description

## Description
The production web server has multiple entries like:
```
PHP Warning: Invalid argument supplied for foreach() in /var/www/index/wp-content/themes/vocabulary-theme/page_home.php on line 200
```

Context:
https://github.com/creativecommons/vocabulary-theme/blob/245905816016ba12728cebb267e99b514b4c7ad4/src/page_home.php#L199-L213

## Expectation
Code should handle lack of `$highlight_posts` gracefully.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.