#2313 closed defect (bug) (fixed)
classes.php : missing test before a foreach
| Reported by: | Ozh | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 2.0 |
| Severity: | trivial | Keywords: | foreach warning classes pages bg|has-patch |
| Cc: | Focuses: |
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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [3467]) Make sure we have an array. Props Ozh and David House. fixes #2313