Repository navigation
Commit 03bb4c6
Fix PHP warnings in author_meta and Openverse search (#796)
* Pattern Directory: Read the author_meta author from the post.
`$post['author']` is missing from the prepared response when `_fields` doesn't request it, which triggered an undefined array key warning.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* Pattern Creator: Return an error while an Openverse failure is cached.
After an upstream failure an empty array is cached for 30 seconds, which the REST controller then read as a results object.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>1 parent 4c13d25 commit 03bb4c6
2 files changed
Lines changed: 16 additions & 4 deletions
File tree
- public_html/wp-content/plugins
- pattern-creator/includes
- pattern-directory/includes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
238 | 247 | | |
239 | 248 | | |
240 | 249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
437 | | - | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
438 | 441 | | |
439 | | - | |
440 | | - | |
441 | | - | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
442 | 445 | | |
443 | 446 | | |
444 | 447 | | |
| |||
0 commit comments