#2313 closed defect (bug) (fixed)
classes.php : missing test before a foreach
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 2.0 |
| Severity: | trivial | Keywords: | foreach warning classes pages bg|has-patch |
| Cc: |
Description
line 372 of wp-includes/classes.php we have "$all_page_ids = get_all_page_ids();" then we go on with a foreach loop that will obviously return a nasty warning if used when there is no page created.
Attachments (1)
Change History (5)
davidhouse — 7 years ago
comment:2
davidhouse — 7 years ago
- Keywords bg|has-patch added
Note: See
TracTickets for help on using
tickets.

(In [3467]) Make sure we have an array. Props Ozh and David House. fixes #2313