Opened 5 months ago
Closed 5 months ago
#22945 closed defect (bug) (duplicate)
get_page_uri() produce PHP Warning on line 3588
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 3.5 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
When a page has no ancestors, foreach produces:
Warning: Invalid argument supplied for foreach() in [...]/wp-includes/post.php on line 3588
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.

Casting as (array) resolves the issue