#2384 closed defect (bug) (fixed)
Warning: Invalid argument supplied for foreach() in wp-includes/template-functions-author.php on line 182
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.1 |
| Component: | Template | Version: | 2.0 |
| Severity: | trivial | Keywords: | bg|has-patch wp_list_authors |
| Cc: |
Description
Warning: Invalid argument supplied for foreach() in wp-includes\template-functions-author.php on line 182
Error happens using wp_list_authors() when only admin user is defined. Default usage of wp_list_authors() causes admin user to be excluded and that causes the error.
If I did this right, the attached fix checks to see if $authors is an array.
Attachments (1)
Change History (5)
comment:1
davidhouse
— 7 years ago
- Keywords bg|has-patch added
comment:2
westi
— 7 years ago
- Component changed from General to Template
- Keywords wp_list_authors added
- Milestone set to 2.1
- Priority changed from low to normal
Note: See
TracTickets for help on using
tickets.
fix for template-functions-author.php