Commit d33874f
fix: ensure image_meta is always an array in Featured_News_Block_Controller
wp_get_attachment_metadata() can return false when no metadata exists,
which would cause errors downstream. Added type guard to default to
an empty array.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent f825c96 commit d33874f
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
0 commit comments